Wastewater heat recovery systems use thermal energy from sewage to heat and cool buildings, cutting costs and reducing reliance on fossil fuels.