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. ›Waterproof Ultrasonic Sensors

Component guide · Intermediate · 3 min read

Waterproof Ultrasonic Sensors

JSN-SR04T and A02YYUW

By Geekobot Learning Team · Updated 24 Oct 2026

On this page
Short answerHow they differ from the HC-SR04Wiring and modesMeasuring a water tankTry itCommon mistakesFAQsParts and next steps
Short answer

Waterproof ultrasonic sensors such as the JSN-SR04T and A02YYUW put the transducer in a sealed probe on a cable, so they can measure water level in a tank or work outdoors. They have a larger minimum distance (often 20 to 25 cm) than an HC-SR04, and many offer a UART output that gives the distance directly. Mount them square to the surface and keep them out of splashes and condensation.

Key specs at a glance

Range
About 20 to 450 cm for JSN-SR04T; about 3 to 450 cm for A02YYUW (check the version)
Dead zone
Readings closer than the minimum are unreliable
Outputs
Trigger/echo like HC-SR04, or UART distance frames
Supply
3.3 to 5 V on newer versions; some older boards need 5 V
Beam
Wider than a bare HC-SR04, so keep it away from tank walls
Protection
Probe is water-resistant; the control board is not
01

How they differ from the HC-SR04

The HC-SR04 uses two open transducers, one to send and one to listen. A waterproof probe uses a single sealed transducer that does both, so it must wait for its own ring to die away before listening. That creates the larger dead zone close to the sensor.

The trade is durability: the probe can sit above water, in dust or outdoors. Only the probe is sealed, so put the small control board in a box.

02

Wiring and modes

In the default trigger mode, wire it like an HC-SR04: VCC, GND, TRIG and ECHO to digital pins, and use the same pulse timing code. Because the sensor can be slower to recover, leave at least 60 to 100 ms between readings.

Many boards have a resistor position or pad that switches the output mode, such as continuous UART output at 9600 baud. The A02YYUW sends 4-byte frames: a header byte 0xFF, distance high byte, distance low byte, and a checksum. Read them on a UART and check the checksum before using the value.

03

Measuring a water tank

  1. 1
    Mount the probe at the top, pointing straight down, at least the dead-zone distance above the highest water level.
  2. 2
    Keep it away from the walls, inlet pipe and ladder so the beam sees only the water.
  3. 3
    Water level = mounting height minus measured distance. Volume = level times the tank's cross-section area.
  4. 4
    Take several readings and use the median, which rejects odd echoes.
  5. 5
    Condensation on the probe face causes false readings; a short shroud and a small vent help.

Send the result over Wi-Fi with an ESP32 and MQTT for a tank monitor that switches a pump.

04

Try it: Voltage divider calculator

Change the values and the diagram and results update as you type.

05

Common mistakes to avoid

  • !Mounting the probe closer to the water than its dead zone.
  • !Pointing it near the tank wall or inlet pipe.
  • !Leaving the control board exposed to water.
  • !Polling faster than the sensor can recover.
  • !Ignoring the checksum in UART mode.
06

Frequently asked questions

Can I use HC-SR04 code with the JSN-SR04T?

Yes in its default mode. Leave more time between readings and expect a larger minimum distance.

Why does it read wrong values close up?

It is inside the dead zone, roughly 20 to 25 cm on many JSN-SR04T versions.

Is the whole sensor waterproof?

Only the probe. Keep the control board in an enclosure.

How accurate is it for tank level?

Usually within a centimetre or two in a calm tank when mounted squarely and averaged.

Does it work at 3.3 V?

Newer versions do. Older ones may need 5 V, with a divider on ECHO for a 3.3 V board.

Parts for this guide

  • DYP Converter Boards
    ₹350View
  • DYP-L062MCW-V1.0 IIC Ultrasonic Liquefied Gas Level Sensor (Measuring Range 30~1000mm)
    ₹2,168View
  • DYP-L062M4W-V1.0 RS485 Ultrasonic Liquefied Gas Level Sensor (Measuring Range 30~1000mm)
    ₹2,915View
  • NU200E12TR-1T 12mm 200kHz Ultrasonic Wind Speed Sensor – IP68 Stainless Steel
    ₹39,689View
Shop Interface ModulesShop Gas & Weather Sensors

Calculators

Voltage divider calculator

Terms in this guide

UltrasonicSound above human hearing (over 20 kHz); the HC-SR04 uses 40 kHz.Time of flightMeasuring distance from how long a signal (sound or light) takes to bounce back.UARTUniversal asynchronous receiver-transmitter: two-wire serial (TX and RX) used by GPS, Bluetooth modules and debug output.IP ratingIngress Protection rating (IEC 60529), such as IP65: the first digit rates protection against dust and solids, the second against water.

Projects that use it

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

Intermediate · 3 hoursAutomatic water tank pump controllerView projectIntermediate · 1–2 hoursWi-Fi water tank level monitorView projectIntermediate · 2–3 hoursOverhead tank pump controller with displayView project
Browse all 23 projects

Keep learning

Component guideBeginnerHC-SR04 Ultrasonic SensorThe HC-SR04 measures distance from about 2 cm to 4 m by sending a 40 kHz ultrasonic pulse and timing the echo.3 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 guideBeginnerESP32 GuideThe ESP32 is a low-cost 3.3 V microcontroller from Espressif with built-in Wi-Fi and Bluetooth, used for IoT devices, smart-home controllers and web dashboards.5 min read · Boards & MicrocontrollersConcept explainerIntermediateMQTT and Home Assistant for ESP32MQTT is a lightweight messaging system: devices publish messages to named topics on a broker, and anything subscribed to that topic receives them.3 min read · IoT & WirelessComponent guideIntermediateVL53L0X and VL53L1X Laser Distance SensorsThe VL53L0X and VL53L1X are tiny time-of-flight sensors from ST.3 min read · Sensors

Sources

  • JSN-SR04T module documentation
  • DFRobot A02YYUW product wiki and protocol
  • MaxBotix ultrasonic sensor application notes

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

On this page
Short answerHow they differ from the HC-SR04Wiring and modesMeasuring a water tankTry itCommon 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 guide1 item · ₹377

Waterproof Ultrasonic Sensor Module without Probe

Ask the Community

Ask a question