Maryland has created an early warning system to collect water quality data and detect wastewater treatment plant malfunctions before they cause serious pollution.