Title: Automatic control for wastewater treatment systems