Principle of Operation
The figure shows the situation where the liquid level is below the float. The shaft is pulled by the float and at its lowest position, and the microswitch is in an off state.
When the liquid level rises and the float leaves the stopper, the shaft does not move for a while. When the liquid level rises further, the float pushes the upper stopper due to the buoyancy and lifts the shaft, turning on the microswitch.
The microswitch keeps the on state until the level falls and the float sits on the lower stopper. The microswitch allows this large hysteresis. The spring supports the shaft and also adjusts operation deviation of the microswitch.