Abstract: A system and method for controlling a speed of a pumping system includes a controller, a variable frequency drive connected to the controller, a motor connected to the variable frequency drive, a pump connected to the motor, a set of sensors connected to the motor, the pump, and the controller, and an interface connected to the controller. The controller includes a processor and a memory connected to the processor. A motor control process is saved in the memory and executed by the processor that generates a motor control signal to control the speed of the motor and the pump.