As the tank fills up the float lifts up due to buoyancy.
The other end of the float which is magnetic in nature goes down and
during its downward motion, triggers the switch assembly and the
contacts get closed, which can be used to operate a alarm or any
other audio/visual load.