Biogas mainly contains

Methane

Hydrogen

CO

Ethane