Turning pipedreams into pipe-bots: Intelligent self-powered sensors for wastewater systems and river protection