Optimal biogas production from wastewater sludge requires precise control of several processes. This is mastered at the wastewater treatment facility in Egaa, where residual water from the nearby city of Aarhus is treated as a resource the minute it enters the facility.