Wastewater heat recovery captures heat from warm shower water and transfers it to the incoming cold-water supply, reducing the energy needed to produce hot water.