In order to improve operations at wastewater treatment plants, we have developed software for the management of measurement and control systems which is capable of achieving significant improvements in energy efficiency while reducing chemical agents added for the elimination of phosphates in wastewater.