Real-time automation sensors at the Huaron treatment plant adjust automatically to ensure that discharge limits are in total compliance and have contributed to reduced reagent usage and treatment costs.