A float switch is a device used to detect the level of liquid in a tank, reservoir, or other container. It operates by floating on the surface of the liquid and triggering an electrical switch when the liquid reaches a certain level. Float switches are commonly used to control pumps, alarms, and other devices in various liquid-level management applications.