Back in the ‘60s my hometown sewage plant had an engine that ran on methane gas from the break down of the waste. It ran a generator that produced electricity.
In Mt View, California, the city built an outdoor music theater on top of a recently capped landfill. They forgot to put in a methane collection system, and during the first year of operation you had to be very careful about lighting cigarettes! No joke.