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. ›Water Level Depth Sensor Module (Exposed Trace Type)

Component guide · Beginner · 3 min read

Water Level Depth Sensor Module (Exposed Trace Type)

Wiring, Code and Limits

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 Water level and rain sensor module isWater level and rain sensor module pinoutWiring the Water level and rain sensor moduleExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

These small boards have parallel exposed copper traces; the more traces water covers, the higher the analog output. They show a rough water depth of a few centimetres, detect leaks under a tank or sense rain drops. They are simple and cheap for classroom demos but corrode quickly if left powered in water, so switch them on only when reading.

Key specs at a glance

Principle
Conductivity between interleaved traces
Detection
About 0 to 40 mm depth (board length)
Supply
3.3 to 5 V
Output
Analog (higher = more water)
Versions
Generic, HS-S37 (plastic and stainless), Waveshare, Grove, Crowtail, ACEBOTT
Life
Short if powered continuously in water

Models in this guide

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

  • Option 1Water Level Depth Detection Sensor Module for Arduino – Analog Output₹17
  • Option 2HS-S37-L Water Depth Sensor – 5V DC, Plastic Housing₹128
  • Option 3HS-S37A Water Depth Sensor – Analog Output, 3-Pin Interface₹80
  • Option 4HS-S37P Water Depth Sensor – Analog Output, 3-Pin Interface, Stainless Steel₹109
  • Option 5Waveshare Liquid Level Sensor – 0-48mm Detection Depth, Analog Output, 2.0mm Mounting Holes₹319
  • Option 6Seeed Studio Grove Water Sensor v1.1 – Digital/Analog Conductivity Module₹429
01

What the Water level and rain sensor module is

Water level depth sensor modules, such as the common red board with exposed traces, give an analog value that rises as more of the board is under water, for simple level and rain detection.

The reading is not linear and depends on the water's conductivity, so use it to detect "dry, some water, deep" rather than millimetres. For real depth, use an ultrasonic sensor or a submersible pressure transmitter.

Grove and Crowtail versions use pull-up circuits and give a digital-style reading with a plug-in cable.

02

Water level and rain sensor module pinout

The pins on the Water level and rain sensor module and what each one does.

PinFunction
+ / VCC3.3 to 5 V
- / GNDGround
S / SIGAnalog output
PinFunction
+ / VCC
3.3 to 5 V
- / GND
Ground
S / SIG
Analog output
03

Wiring the Water level and rain sensor module

Power the board from a GPIO and read only every few seconds or minutes to reduce corrosion.

Water level and rain sensor module pinArduino UnoESP32
VCCD7 (switched power)GPIO 25 (switched power)
GNDGNDGND
SIGA0GPIO 34
VCC
Arduino Uno:
D7 (switched power)
ESP32:
GPIO 25 (switched power)
GND
Arduino Uno:
GND
ESP32:
GND
SIG
Arduino Uno:
A0
ESP32:
GPIO 34
04

Example code

Adjust the threshold after testing with your water; tap water and rain water conduct differently.

Leak alarm with switched power (Uno) · Arduino C++Verify & upload in Electrolark
const int PWR = 7, BUZZER = 8;

void setup() { pinMode(PWR, OUTPUT); pinMode(BUZZER, OUTPUT); Serial.begin(9600); }

void loop() {
  digitalWrite(PWR, HIGH); delay(20);
  int level = analogRead(A0);
  digitalWrite(PWR, LOW);
  Serial.println(level);
  digitalWrite(BUZZER, level > 200);     // water detected
  delay(2000);
}
05

Setup and tuning

Wiring

+ to VCC, - to GND and S to an analog pin.

Power control

power the module from a GPIO only when reading to slow corrosion.

Calibration

record readings at dry and at several known depths.

Range

it covers only the length of the traces, about 4 cm.

Life

traces corrode in long use; treat it as a learning sensor.

06

What you need

Shop this list11 of 12 found in our store · ₹2,076

  • Generic Water Level Depth Detection Sensor Module for Arduino – Analog Output: the part this guide coversWater Level Depth Detection Sensor Module for Arduino – Analog Output₹17
  • HS-S37-L Water Depth Sensor – 5V DC, Plastic Housing: another version this guide coversHS-S37-L Water Depth Sensor – 5V DC, Plastic Housing₹128
  • HS-S37A Water Depth Sensor – Analog Output, 3-Pin Interface: another version this guide coversHS-S37A Water Depth Sensor – Analog Output, 3-Pin Interface₹80
  • HS-S37P Water Depth Sensor – Analog Output, 3-Pin Interface, Stainless Steel: another version this guide coversHS-S37P Water Depth Sensor – Analog Output, 3-Pin Interface, Stainless Steel₹109
  • Waveshare Liquid Level Sensor – 0-48mm Detection Depth, Analog Output, 2.0mm Mounting Holes: another version this guide coversWaveshare Liquid Level Sensor – 0-48mm Detection Depth, Analog Output, 2.0mm Mounting Holes₹319
  • Seeed Studio Studio Grove Water Sensor v1.1 – Digital/Analog Conductivity Module: another version this guide coversSeeed Studio Grove Water Sensor v1.1 – Digital/Analog Conductivity Module₹429Closest match, check the specs
  • Elecrow Crowtail Water Sensor – Crowtail Interface Module: another version this guide coversElecrow Crowtail Water Sensor – Crowtail Interface Module₹200
  • ACEBOTT Water Level Sensor Droplet Detection Module – Analog Output, Easy-Plug for ESP32/Arduino: another version this guide coversACEBOTT Water Level Sensor Droplet Detection Module – Analog Output, Easy-Plug for ESP32/Arduino₹239
  • Uno R3 development board: the controller used in the wiring tableFind this part
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
  • Buzzer module 3.3-5 V: for an audible alarmBuzzer Module 3.3–5V₹27
  • 0.96 inch OLED display 128x64: to show readings without a computer0.96" OLED Display 128x64₹139Closest match, check the specs
07

Alternatives and when to choose them

  • ✓Float level switch: a reliable single-point level.
  • ✓Submersible level transmitter: accurate tank depth.
  • ✓Liquid level sensors: every method compared.
08

Common mistakes to avoid

  • !Leaving it powered in water.
  • !Using it for deep tanks.
  • !Wetting the electronics part.
  • !No calibration.
09

Frequently asked questions

How deep can this water sensor measure?

Only about 4 cm, the length of the sensing traces.

Why does the reading drift over days?

The traces corrode and minerals build up, which slowly changes the reading.

Can I use it for a water tank level?

Not for deep tanks; use an ultrasonic or pressure sensor.

Can I use it with ESP32?

Yes, power it from 3.3 V so the output stays safe.

How do I make it last longer?

Power it only when reading and dry it between uses.

Parts for this guide

  • Water Level Depth Detection Sensor Module for Arduino – Analog Output
    ₹17View
  • HS-S37-L Water Depth Sensor – 5V DC, Plastic Housing
    ₹128View
  • HS-S37A Water Depth Sensor – Analog Output, 3-Pin Interface
    ₹80View
  • HS-S37P Water Depth Sensor – Analog Output, 3-Pin Interface, Stainless Steel
    ₹109View
  • Waveshare Liquid Level Sensor – 0-48mm Detection Depth, Analog Output, 2.0mm Mounting Holes
    ₹319View
  • Seeed Studio Grove Water Sensor v1.1 – Digital/Analog Conductivity Module
    ₹429View
  • Elecrow Crowtail Water Sensor – Crowtail Interface Module
    ₹200View
  • ACEBOTT Water Level Sensor Droplet Detection Module – Analog Output, Easy-Plug for ESP32/Arduino
    ₹239View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Buzzer Module 3.3–5V
    ₹27View
  • 0.96" OLED Display 128x64
    ₹139View
Shop Water, Liquid Level & Flow Sensors

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 guideBeginnerFloat Level Switch (Small Vertical, Side-Mount and Cable Float)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).5 min read · SensorsComponent guideIntermediateSubmersible Water Level TransmitterA submersible level transmitter sits at the bottom of a tank, well or sump and measures the water pressure above it, which is proportional to depth: 1 metre of water is about 9.8 kPa.3 min read · Sensors

Sources

  • Seeed Grove water sensor wiki
  • Generic water level sensor module schematics

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 Water level and rain sensor module isWater level and rain sensor module pinoutWiring the Water level and rain sensor moduleExample 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 guide (Arduino Uno)7 items · ₹1,057

Water Level Depth Detection Sensor Module for Arduino – Analog Output · HS-S37-L Water Depth Sensor – 5V DC, Plastic Housing · HS-S37A Water Depth Sensor – Analog Output, 3-Pin Interface · HS-S37P Water Depth Sensor – Analog Output, 3-Pin Interface, Stainless Steel · Waveshare Liquid Level Sensor – 0-48mm Detection Depth, Analog Output, 2.0mm Mounting Holes · Elecrow Crowtail Water Sensor – Crowtail Interface Module · Uno R3 CH340G ATmega328p Compatible Development Board

Run itChange the inputs and watch the output

The sensor is only powered for 20 ms per reading so the traces corrode slower. Above 200 the buzzer sounds.

Buzzer OFF
Serial monitor9600 baud
120

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