Many times, the electricity generated can be sold to the grid using the natural gas that gets to the houses. Tecnalia is working in a system that consists of two parts: a reactor to produce heat and hydrogen from natural gas, and a fuel cell that converts hydrogen to electricity.
Further information: cordis.europa.eu