However, due to the complex matrix and generally hostile environment in which these measurements have to be performed, the lack of accurate cost-effective and resistant sensors has been the mainreason for the slower automation progress of wastewater treatment systems when compared to other industrial processes (Lynggaard-Jensen, 1999).