Magnetic float switches or level sensors are used to detect the level of a liquid. Magnetic float switches are placed in a tank