Text this: Chemical and biosensor technologies for wastewater quality management