Clayton Hall Farm has invested £1.6 million to have an anaerobic digestion plant installed which should pay itself off within 5 years.
Food waste from local companies will give the scraps to the farm to help the process.
Built by CO2Sense, is one of the first of its kind in West Yorkshire.