The invention discloses a float switch which comprises a float, a float guide rod, a reed pipe detecting device and a relay, wherein the float is sleeved on the float guide rod, and can freely slide;the reed pipe detecting device comprises a high level reed pipe, a lower level reed pipe and a magnet; the float guide rod is hollow inside, and the high level reed pipe and the lower level reed pipeare respectively arranged at the high position and the low position in the float guide rod; and the magnet is arranged inside the float. The float switch adopts the relay to control a motor. When therelay is switched on, the motor works; when the relay is switched off, the electric motor stops working. The invention has long service life and high reliability, has outstanding waterproof performance by adopting a mode of glue pouring sealing, completely avoids the worry about that hydrosphere enters the interior of a product, avoids the phenomenon of metal oxidation, further strengthens the reliability of the product, has simple production and installation, lower poor rate and rejection rate, and further lowers the cost.