The ability to measure exact contamination levels in real time means water can be cleaned in a sustainable, low-impact way