Keeping wastewater facilities running at optimum efficiency