Float switch (vertical)
Magnetic float that switches when water rises.
MeasuresLiquid level (on or off)
InterfaceReed switch contact
Watch out forReed contact rated about 10 W: low voltage only
SensorsReviewedMPN Float switchUsed in 9 projects
In short
What is the Float switch (vertical) and what is it used for?
Magnetic float that switches when water rises. Makers use it for tank full alarms, pump cut-off.
How it works
A magnet in the float closes a reed switch inside the stem when the water lifts it.
Key specifications
| Sensor spec | Value |
|---|---|
| Measures | Liquid level (on or off) |
| Interface | Reed switch contact |
| Watch out for | Reed contact rated about 10 W: low voltage only |
Pinout
Wire 1Reed switch contact
Wire 2Reed switch contact
How to use it
Wire it like a button: one wire to a GPIO with INPUT_PULLUP, the other to ground. Flip the float on its shaft to change between normally open and normally closed. Never switch a pump directly through it.
Applications
Tank full alarmspump cut-off
Builds that use it
Guided build
Cattle water trough refill controller
Guided build
NFT hydroponics pump and water level guard
Guided build
Cattle trough fill controller
Guided build
Solar water pump dry-run protector
Guided build
Aquaponics fish tank monitor
Guided build
Tank fill control with float switches
Guided build
Rain barrel level lights
Idea
Drip irrigation pump timer
Showing 8 of 9
Alternatives
- Water level sensor (non-contact, XKC-Y25)Senses through the tank wall
Common questions
What is the Float switch (vertical) used for?
In maker projects: tank full alarms, pump cut-off.
How does the Float switch (vertical) work?
A magnet in the float closes a reed switch inside the stem when the water lifts it.
How do I connect the Float switch (vertical) to an Arduino or ESP32?
Reed switch contact. Pins: Wire 1 (Reed switch contact), Wire 2 (Reed switch contact).
What can I use instead of the Float switch (vertical)?
Water level sensor (non-contact, XKC-Y25).
