Instrumentation, control, and automation for waste-water treatment systems