Liquid level control

Use this circuit to keep the fluid level of a liquid between two fixed points. Two modes, for filling or emptying are possible by simple reversing the contact connections of Kl. The loads can be either electric motors or solenoid operated valves, operating from ac power. Liquid level detection is accomplished by two metal probes, one measuring the high level and the other the low level
Liquid level control - schematic

An inversion of the logic (keeping the container filled) can be accomplished by replacing the normally open contact on the gate of Q3 with a normally closed contact.