Wastewater heat recovery unit