The control unit is always receives power, and has a sensor that makes it only work when the pump is running. It's very easy to set up.