Rising Water: As the tank fills, the float rises. Once it reaches a set angle or height, the internal magnet or metallic ball moves to close (or open) the electrical circuit.
Falling Water: When the level drops, the float sinks and tilts back, reversing the switch state and stopping or starting the connected equipment