In biogas, the chemical energy is converted biologically (anaerobic bacteria) to electrical and heat energy. The gases methane hydrogen and carbonmonoxide combusted with oxygen and these energy is converted to heat and electricity. Here the changes are chemical changes