Optimization of Sensor Technology for Efficient Fermentation of Biogenic Residues and Waste in Biogas Plants