I have done it for some years ago. I had a float in the tank who break the power to the pump when the level was near minimum. You can monitor if the pump is shut down and you may to start it by hand. Do you want a schematic diagram? Is the AC motor one- or three phase and what is the voltage to it? In the water you may only use low voltage i.e. 24V.