As the level rises and falls the inclination of the float is changed causing a permanent magnet in the float to be deflected which in turn repels a rotatable opposing magnet. This forced snap-action-contact effect operates a microswitch with a plunger. Even very small changes in level can be detected in this way.