Components / Sensors / Float switch (vertical)

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 specValue
MeasuresLiquid level (on or off)
InterfaceReed switch contact
Watch out forReed 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

Alternatives

Buy at

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).