A float switch is a device used to detect the level of liquid within a tank or container. It operates by using a float, which is a buoyant object that rises and falls with the liquid level. The float is connected to a switch mechanism that opens or closes an electrical circuit based on the float's position.
There are two main types of float switches: mechanical and magnetic. 
1. **Mechanical Float Switch**: This type uses a float attached to a lever arm. As the liquid level changes, the float moves, causing the lever to pivot. This movement either opens or closes a mechanical switch, completing or breaking an electrical circuit. These are often used in sump pumps and other applications where simple on/off control is needed.
2. **Magnetic Float Switch**: This type involves a float containing a magnet. The float moves along a vertical rod or within a chamber. As the float rises or falls with the liquid level, the magnet inside the float activates a reed switch or a similar magnetic sensor within the rod. This action opens or closes the circuit. Magnetic float switches are commonly used in more precise applications, such as in industrial tanks or HVAC systems.
Float switches can be configured for normally open (NO) or normally closed (NC) circuits, depending on whether the circuit is completed or broken when the float is at rest. They are used in various applications, including water tanks, sump pumps, and industrial processes, to control pumps, alarms, or other devices based on liquid levels. 
Overall, float switches provide a simple, reliable method for liquid level detection and control, ensuring systems operate efficiently and safely.