This video demonstrates how a float switch can be used to control the liquid level in a tank. A two-level float switch and this tank level control relay is all you need to automatically control a valve or pump to drain or fill tanks. For more information on this product click the link below.
https://www.liquidlevel.com/pump-control-relay/