Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Sensors
  4. ›Float Level Switch (Small Vertical, Side-Mount and Cable Float)

Component guide · Beginner · 5 min read

Float Level Switch (Small Vertical, Side-Mount and Cable Float)

Wiring and Pump Control

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the Float level switch isFloat level switch pinoutWiring the Float level switchExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

A float switch has a float that rises with the liquid and moves a magnet past a reed switch (small floats) or tilts a switch inside the cable float (tank floats). It gives a simple open or closed contact at a set level. Small floats connect straight to an Arduino input; cable floats with high ratings can switch a pump contactor directly. Check whether it is normally open (NO) or normally closed (NC).

Key specs at a glance

Small floats
Vertical (P25 to P45) and side-mount reed types, 10 to 50 W ratings
Cable floats
Square or round floats, 2 to 15 m cable, up to 250/380 V AC
Contacts
NO, NC or changeover (cable floats often have 3 wires)
Materials
PP, nylon or stainless; check liquid compatibility
Controllers
ST-70AB double-circuit pump controller
Industrial
Celduc, Pepperl+Fuchs, TE, Multicomp floats

Models in this guide

These are alternatives. Pick the one that fits your project; you only need one.

  • Option 1P25 Small Float Level Control Switch Plastic Float Switch – 35mm Cable₹239
  • Option 2P35 Small Float Level Control Switch Plastic Float Switch – NC Type, 35cm Cable₹98
  • Option 3P31 Small Float Level Control Switch Plastic Float Switch – NC Type₹106
  • Option 4P45 Small Float Level Control Switch Plastic Float Switch – 220V AC/DC₹114
  • Option 5Side Mounted Small Float Level Control Switch Plastic Float Switch 55mm – 300mm Cable₹112
  • Option 6Float Switch 10M Cable IP68 Waterproof – Square Float Level Sensor₹619
01

What the Float level switch is

Small reed floats are low-power switches: often 0.5 A or less and 10 to 50 VA. Never put a pump directly through them; switch a relay instead. Turning the float upside down on many vertical types swaps NO and NC.

Cable floats hang on their cable with a weight; the length of free cable sets the difference between on and off levels, which gives natural hysteresis for pump control.

02

Float level switch pinout

The pins on the Float level switch and what each one does.

PinFunction
Two wiresSwitch contact (NO or NC)
Three wires (cable floats)Common, NO and NC
Thread / nutMounting through a tank wall or lid
PinFunction
Two wires
Switch contact (NO or NC)
Three wires (cable floats)
Common, NO and NC
Thread / nut
Mounting through a tank wall or lid
03

Wiring the Float level switch

Use the internal pull-up and the switch to ground. For mains pumps use the cable float's rated contacts or a contactor, and keep mains wiring to a qualified person.

Float level switch pinArduino UnoESP32
Float wire 1D2 (INPUT_PULLUP)GPIO 27 (INPUT_PULLUP)
Float wire 2GNDGND
Float wire 1
Arduino Uno:
D2 (INPUT_PULLUP)
ESP32:
GPIO 27 (INPUT_PULLUP)
Float wire 2
Arduino Uno:
GND
ESP32:
GND
04

Example code

Invert the logic for NC floats. The two floats give a fill band so the pump does not chatter.

Low and high float pump control with hysteresis (Uno) · Arduino C++Verify & upload in Electrolark
const int LOW_F = 2, HIGH_F = 3, PUMP = 7;
bool pumpOn = false;

void setup() {
  pinMode(LOW_F, INPUT_PULLUP); pinMode(HIGH_F, INPUT_PULLUP);
  pinMode(PUMP, OUTPUT);
}

void loop() {
  bool lowWet  = digitalRead(LOW_F)  == LOW;   // closed when float is up (NO type)
  bool highWet = digitalRead(HIGH_F) == LOW;
  if (!lowWet) pumpOn = true;      // tank empty: start filling
  if (highWet) pumpOn = false;     // tank full: stop
  digitalWrite(PUMP, pumpOn);
  delay(200);
}
05

Setup and tuning

Test

check NO or NC with a multimeter by lifting the float.

Orientation

many small floats reverse NO/NC when flipped.

Ratings

respect voltage and VA limits; use a relay for any motor.

Sumps

cable floats need free space to swing without catching on pipes.

06

What you need

Shop this list20 of 20 found in our store · ₹7,109

  • Generic P25 Small Float Level Control Switch Plastic Float Switch – 35mm Cable: the part this guide coversP25 Small Float Level Control Switch Plastic Float Switch – 35mm Cable₹239
  • Generic P35 Small Float Level Control Switch Plastic Float Switch – NC Type, 35cm Cable: another version this guide coversP35 Small Float Level Control Switch Plastic Float Switch – NC Type, 35cm Cable₹98
  • Generic P31 Small Float Level Control Switch Plastic Float Switch – NC Type: another version this guide coversP31 Small Float Level Control Switch Plastic Float Switch – NC Type₹106
  • Generic P45 Small Float Level Control Switch Plastic Float Switch – 220V AC/DC: another version this guide coversP45 Small Float Level Control Switch Plastic Float Switch – 220V AC/DC₹114
  • Generic Side Mounted Small Float Level Control Switch Plastic Float Switch 55mm – 300mm Cable: another version this guide coversSide Mounted Small Float Level Control Switch Plastic Float Switch 55mm – 300mm Cable₹112
  • Generic Float Switch 10M Cable IP68 Waterproof – Square Float Level Sensor: another version this guide coversFloat Switch 10M Cable IP68 Waterproof – Square Float Level Sensor₹619
  • Generic Float Switch 15m Cable IP68 Waterproof – Square Float Level Sensor: another version this guide coversFloat Switch 15m Cable IP68 Waterproof – Square Float Level Sensor₹679
  • Generic Float Switch 3M Cable – IP68 Waterproof, 250V/380V AC, Square Float: another version this guide coversFloat Switch 3M Cable – IP68 Waterproof, 250V/380V AC, Square Float₹289
  • Generic Float Switch Square 5M Level Sensor – 10m Cable, 0.1MPa: another version this guide coversFloat Switch Square 5M Level Sensor – 10m Cable, 0.1MPa₹1,239
  • Generic Square Float Switch 2M Cable IP68 Waterproof – Pump Tank Level Sensor: another version this guide coversSquare Float Switch 2M Cable IP68 Waterproof – Pump Tank Level Sensor₹239
  • Generic Square Float Switch 4M Cable – IP68 Plastic Housing: another version this guide coversSquare Float Switch 4M Cable – IP68 Plastic Housing₹399
  • Generic Square Float Switch for Industrial Pump Tank Sensor – 6m Cable, IP68 Plastic: another version this guide coversSquare Float Switch for Industrial Pump Tank Sensor – 6m Cable, IP68 Plastic₹559
  • ST-70AB Float Switch Water Level Controller – Double Circuit Pump Control: another version this guide coversST-70AB Float Switch Water Level Controller – Double Circuit Pump Control₹409
  • Saier SEN-PPI25 Float Level Switch – DC110V, Switch Signal Output: another version this guide coversSaier SEN-PPI25 Float Level Switch – DC110V, Switch Signal Output₹158
  • Saier SEN-PPI35 Float Level Switch – DC110V, 0.5A, Contact Signal: another version this guide coversSaier SEN-PPI35 Float Level Switch – DC110V, 0.5A, Contact Signal₹239
  • Saier SEN-PPT34 Float Level Switch – DC110V, Switch Signal Output: another version this guide coversSaier SEN-PPT34 Float Level Switch – DC110V, Switch Signal Output₹170
  • Saier SEN-PPY85 Float Level Switch – DC200V, Switch Signal Output: another version this guide coversSaier SEN-PPY85 Float Level Switch – DC200V, Switch Signal Output₹359
  • Saier SEN-SSI45 Float Level Switch – Normally Open Contact: another version this guide coversSaier SEN-SSI45 Float Level Switch – Normally Open Contact₹729
  • Float Level Switch SEN-PPI110: another version this guide coversFloat Level Switch SEN-PPI110₹242
  • Generic Anti-Corrosion Water Level Sensor with Ball Float Switch – 110VDC, 40cm Cable: another version this guide coversAnti-Corrosion Water Level Sensor with Ball Float Switch – 110VDC, 40cm Cable₹111
07

Alternatives and when to choose them

  • ✓XKC-Y25 non-contact sensor: detects through the tank wall.
  • ✓Liquid level sensors: every level method compared.
  • ✓Submersible level transmitter: continuous level.
08

Common mistakes to avoid

  • !Running a pump directly through a small reed float.
  • !Assuming NO when it is NC.
  • !Cable float tied too short to tilt.
  • !Float material not suited to the liquid (oil, acid).
09

Frequently asked questions

NO or NC?

Check with a multimeter; flipping many small floats swaps the function.

Can it switch a 1 HP pump?

Only cable floats rated for it, or through a contactor.

How many do I need?

Two for automatic filling or emptying with a dead band.

Do they work in oil?

Check the float material; PP and stainless suit many oils.

What is the ST-70AB?

A controller that uses two floats to run a pump automatically.

Parts for this guide

  • P25 Small Float Level Control Switch Plastic Float Switch – 35mm Cable
    ₹239View
  • P35 Small Float Level Control Switch Plastic Float Switch – NC Type, 35cm Cable
    ₹98View
  • P31 Small Float Level Control Switch Plastic Float Switch – NC Type
    ₹106View
  • P45 Small Float Level Control Switch Plastic Float Switch – 220V AC/DC
    ₹114View
  • Side Mounted Small Float Level Control Switch Plastic Float Switch 55mm – 300mm Cable
    ₹112View
  • Float Switch 10M Cable IP68 Waterproof – Square Float Level Sensor
    ₹619View
  • Float Switch 15m Cable IP68 Waterproof – Square Float Level Sensor
    ₹679View
  • Float Switch 3M Cable – IP68 Waterproof, 250V/380V AC, Square Float
    ₹289View
  • Float Switch Square 5M Level Sensor – 10m Cable, 0.1MPa
    ₹1,239View
  • Square Float Switch 2M Cable IP68 Waterproof – Pump Tank Level Sensor
    ₹239View
  • Square Float Switch 4M Cable – IP68 Plastic Housing
    ₹399View
  • Square Float Switch for Industrial Pump Tank Sensor – 6m Cable, IP68 Plastic
    ₹559View
  • ST-70AB Float Switch Water Level Controller – Double Circuit Pump Control
    ₹409View
  • Saier SEN-PPI25 Float Level Switch – DC110V, Switch Signal Output
    ₹158View
  • Saier SEN-PPI35 Float Level Switch – DC110V, 0.5A, Contact Signal
    ₹239View
  • Saier SEN-PPT34 Float Level Switch – DC110V, Switch Signal Output
    ₹170View
  • Saier SEN-PPY85 Float Level Switch – DC200V, Switch Signal Output
    ₹359View
  • Saier SEN-SSI45 Float Level Switch – Normally Open Contact
    ₹729View
  • Float Level Switch SEN-PPI110
    ₹242View
  • Anti-Corrosion Water Level Sensor with Ball Float Switch – 110VDC, 40cm Cable
    ₹111View
  • TE Connectivity VS803-51 Liquid Level Sensor Float Switch, SPST-NO, Polypropylene, 15W, 250VAC
    ₹3,769View
  • Multicomp Pro MCPLS Series Float Switch, Vertical Miniature, SPST-NO, Polypropylene Body, 130V AC, M8x1.25 Thread, Flying Lead
    ₹1,099View
  • Celduc PTFA0100 Float Switch, PTFA Series, Horizontal, SPST-NO, Nylon 6.6, 10 VA
    ₹1,539View
  • Pepperl+Fuchs LFL2-CK-U-PVC5 Float Switch, LFL Series, Cylinder Type, PVC, 250 Vac, 150 Vdc
    ₹13,083View
  • Magnetic Float Level Sensor
    ₹139View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • 5V Relay Module with Optocoupler
    ₹74View
  • R385 / R365 Diaphragm Water Pump 12V
    ₹220View
  • 12V Solenoid Water Valve 1/2" (Normally Closed)
    ₹263View
  • Digital Multimeter
    ₹177View
Shop Water, Liquid Level & Flow SensorsShop Push Buttons & Tactile

Projects that use it

Put this into practice: 45 step-by-step builds in our project library use parts from this guide.

Beginner · 45 minutesDoor-open alarm with reed switchView projectBeginner · 1–2 hoursWi-Fi door sensorView projectBeginner · 45 minutesFridge door left-open alarmView project
Browse all 45 projects

Keep learning

Buying guideIntermediateLiquid Level SensorsThe right liquid level sensor depends on whether you need a single trip point or a continuous reading.3 min read · SensorsComponent guideBeginnerXKC-Y25 and XKC-Y26 Non-Contact Liquid Level SensorThe XKC-Y25 and XKC-Y26 detect liquid through the wall of a plastic or glass container, up to about 20 mm thick, using capacitance.4 min read · SensorsHow-toBeginnerMini Water Pumps for Arduino ProjectsA mini submersible pump is a small DC motor that pushes water when it sits underwater.3 min read · Motors & MotionComponent guideBeginner5V, 12V and 24V Relay Modules (1 to 16 Channel)A relay module lets an Arduino or ESP32 switch a lamp, pump, solenoid or fan through an isolated contact rated about 10 A at 250 V AC or 30 V DC.4 min read · Sensors

Sources

  • Reed float switch datasheets (Saier, TE, Celduc)
  • Cable float switch manuals

Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

On this page
Short answerWhat the Float level switch isFloat level switch pinoutWiring the Float level switchExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide8 items · ₹2,475

P25 Small Float Level Control Switch Plastic Float Switch – 35mm Cable · P35 Small Float Level Control Switch Plastic Float Switch – NC Type, 35cm Cable · P31 Small Float Level Control Switch Plastic Float Switch – NC Type · P45 Small Float Level Control Switch Plastic Float Switch – 220V AC/DC · Side Mounted Small Float Level Control Switch Plastic Float Switch 55mm – 300mm Cable · Float Switch Square 5M Level Sensor – 10m Cable, 0.1MPa · ST-70AB Float Switch Water Level Controller – Double Circuit Pump Control · Saier SEN-PPI25 Float Level Switch – DC110V, Switch Signal Output

Run itChange the inputs and watch the output

Pump starts when the low float is dry and runs until the high float is wet, so it does not chatter.

Pump (pin 7) ON
Water50 %

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question