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. ›DYP A01NYUB, A01 Series, ME007YS, A19, A21B, A12 Narrow Beam

Component guide · Intermediate · 5 min read

DYP A01NYUB, A01 Series, ME007YS, A19, A21B, A12 Narrow Beam, L08

and H01 Waterproof Ultrasonic Rangefinders

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 DYP A01, ME007YS and A19 waterproof ultrasonic sensors isDYP A01, ME007YS and A19 waterproof ultrasonic sensors pinoutWiring the DYP A01, ME007YS and A19 waterproof ultrasonic sensorsExample codeSetup and tuningWhat you needAlternatives and when to choose themCommon mistakesFAQsParts and next steps
Short answer

DYP A01 and related sensors are sealed IP67 ultrasonic rangefinders for tanks, parking, bins and outdoor robots. The A01NYUB (also sold by DFRobot) measures 28 to 750 cm and streams its reading over UART. The letter after the model tells the output: U is UART auto, T is UART controlled, W is PWM, 4 is RS485 and GD is a switch. The A12 has a narrow beam and the H01 high precision.

Key specs at a glance

Range
About 28 to 750 cm (A01), 3 to 500 cm (A21B), 8 to 800 cm (L08)
Accuracy
About plus or minus (1 cm + 0.3% of distance)
Supply
3.3 to 5 V (TTL types), 5 to 24 V (RS485)
Output
UART 9600 (U auto, T controlled), PWM (W), RS485 (4), switch (GD)
Beam
About 40 to 60 degrees; narrow on A12
Protection
IP67

Models in this guide

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

  • Option 1DFRobot A01NYUB Waterproof Ultrasonic Distance Sensor (28 to 750 cm)₹3,865
  • Option 2DYP-A01ANYUB-V2.0 UART-Auto Ultrasonic Sensor 28–750cm₹2,189
  • Option 3DYP-A01ANYTB-V2.0 Ultrasonic Sensor Module 28–750cm – UART Controlled₹2,079
  • Option 4DYP-A01BNYTB-V2.0 Ultrasonic Sensor Module – UART Controlled, 28-750cm Range₹2,079
  • Option 5DYP-A01BNYUB-V2.0 UART-Auto Ultrasonic Sensor 28–750cm₹2,005
  • Option 6DYP-A01BNYTW-V2.0 Ultrasonic Proximity Sensor 28-450cm Range – UART, PWM, RS485, IP67₹1,359
01

What the DYP A01, ME007YS and A19 waterproof ultrasonic sensors is

The DYP A01 family are sealed waterproof ultrasonic rangefinders that report distance over UART, PWM or RS485, for tanks, parking and outdoor robots.

All UART types send four bytes: 0xFF, distance high byte, distance low byte, checksum. Distance is in millimetres.

Auto (U) models send a reading about every 100 ms. Controlled (T) models only answer after you pull RX low or send a byte, which saves power and avoids two sensors interfering.

02

DYP A01, ME007YS and A19 waterproof ultrasonic sensors pinout

The pins on the DYP A01, ME007YS and A19 waterproof ultrasonic sensors and what each one does.

PinFunction
RedVCC
BlackGND
YellowRX / trigger
WhiteTX / output
PinFunction
Red
VCC
Black
GND
Yellow
RX / trigger
White
TX / output
03

Wiring the DYP A01, ME007YS and A19 waterproof ultrasonic sensors

Connect the DYP A01, ME007YS and A19 waterproof ultrasonic sensors like this.

DYP A01, ME007YS and A19 waterproof ultrasonic sensors pinArduino UnoESP32
Red (VCC)5 V3.3 or 5 V (check model)
Black (GND)GNDGND
Yellow (RX / trigger)D11GPIO 17
White (TX)D10 (SoftwareSerial RX)GPIO 16
Red (VCC)
Arduino Uno:
5 V
ESP32:
3.3 or 5 V (check model)
Black (GND)
Arduino Uno:
GND
ESP32:
GND
Yellow (RX / trigger)
Arduino Uno:
D11
ESP32:
GPIO 17
White (TX)
Arduino Uno:
D10 (SoftwareSerial RX)
ESP32:
GPIO 16
04

Example code

A minimal sketch to check the part works.

Read a DYP UART sensor (ESP32) · Arduino C++Verify & upload in Electrolark
// DYP UART frame: 0xFF, distance high, distance low, checksum ((0xFF + H + L) & 0xFF), distance in mm
const int TRIG = 17;   // "controlled" (T) models: pull RX low or send a byte to trigger; "auto" (U) models stream

void setup() {
  Serial.begin(115200);
  Serial2.begin(9600, SERIAL_8N1, 16, TRIG);
}

void loop() {
  Serial2.write(0x55);                  // trigger for controlled models; ignored by auto models
  delay(100);
  while (Serial2.available() >= 4) {
    if (Serial2.read() != 0xFF) continue;
    uint8_t h = Serial2.read(), l = Serial2.read(), sum = Serial2.read();
    if (((0xFF + h + l) & 0xFF) == sum) {
      Serial.print((h << 8) | l); Serial.println(" mm");
    }
  }
}
05

Setup and tuning

Pick the output

U versions send UART frames automatically; T versions reply when triggered.

UART frame

read 4 bytes: 0xFF, high byte, low byte, checksum, at 9600 baud.

Blind zone

objects closer than the minimum range (about 28 cm on the A01) read wrongly.

Mount straight

point the sensor squarely at the surface; angled surfaces reflect sound away.

Supply

3.3 to 5 V for TTL versions, 5 to 24 V for RS485.

06

What you need

Shop this list20 of 20 found in our store · ₹47,439

  • DFRobot A01NYUB Waterproof Ultrasonic Distance Sensor (28 to 750 cm): the part this guide coversDFRobot A01NYUB Waterproof Ultrasonic Distance Sensor (28 to 750 cm)₹3,865
  • DYP-A01ANYUB-V2.0 UART-Auto Ultrasonic Sensor 28–750cm: another version this guide coversDYP-A01ANYUB-V2.0 UART-Auto Ultrasonic Sensor 28–750cm₹2,189
  • DYP-A01ANYTB-V2.0 Ultrasonic Sensor Module 28–750cm – UART Controlled: another version this guide coversDYP-A01ANYTB-V2.0 Ultrasonic Sensor Module 28–750cm – UART Controlled₹2,079
  • DYP-A01BNYTB-V2.0 Ultrasonic Sensor Module – UART Controlled, 28-750cm Range: another version this guide coversDYP-A01BNYTB-V2.0 Ultrasonic Sensor Module – UART Controlled, 28-750cm Range₹2,079
  • DYP-A01BNYUB-V2.0 UART-Auto Ultrasonic Sensor 28–750cm: another version this guide coversDYP-A01BNYUB-V2.0 UART-Auto Ultrasonic Sensor 28–750cm₹2,005
  • DYP-A01BNYTW-V2.0 Ultrasonic Proximity Sensor 28-450cm Range – UART, PWM, RS485, IP67: another version this guide coversDYP-A01BNYTW-V2.0 Ultrasonic Proximity Sensor 28-450cm Range – UART, PWM, RS485, IP67₹1,359
  • DYP-A01CNYUB-2.1 UART Auto Waterproof Ultrasonic Sensor Measuring Range 28–250cm: another version this guide coversDYP-A01CNYUB-2.1 UART Auto Waterproof Ultrasonic Sensor Measuring Range 28–250cm₹1,989
  • DYP-A01ANY4B-V2.1 Ultrasonic Rangefinder Module – 28-750cm Range, RS485/UART/PWM/Switch Output, IP67: another version this guide coversDYP-A01ANY4B-V2.1 Ultrasonic Rangefinder Module – 28-750cm Range, RS485/UART/PWM/Switch Output, IP67₹1,947
  • DYP-A01BNYUW-V2.0 Ultrasonic Precision Rangefinder Module – 28-450cm, UART/PWM/RS485, IP67: another version this guide coversDYP-A01BNYUW-V2.0 Ultrasonic Precision Rangefinder Module – 28-450cm, UART/PWM/RS485, IP67₹1,649
  • DYP-ME007YS-TX-V2.0 Ultrasonic Rangefinder Module – 28-450cm Range, IP67 Waterproof, UART Auto: another version this guide coversDYP-ME007YS-TX-V2.0 Ultrasonic Rangefinder Module – 28-450cm Range, IP67 Waterproof, UART Auto₹939
  • DYP-ME007YS-TX1 V2.0 UART Controlled Ultrasonic Sensor Module – 28–450cm Range: another version this guide coversDYP-ME007YS-TX1 V2.0 UART Controlled Ultrasonic Sensor Module – 28–450cm Range₹1,149
  • DYP-ME007YS-KG V2.0 Switch Ultrasonic Sensor Module – 28-250cm Range, UART Interface: another version this guide coversDYP-ME007YS-KG V2.0 Switch Ultrasonic Sensor Module – 28-250cm Range, UART Interface₹1,199
  • DYP-A19NYUW-V1.0 High Precision Ultrasonic Sensor 28-450cm – UART Auto IP67 Waterproof: another version this guide coversDYP-A19NYUW-V1.0 High Precision Ultrasonic Sensor 28-450cm – UART Auto IP67 Waterproof₹1,679
  • DYP-A21BYYUW-V1.0 High Precision Ultrasonic Sensor 3-500cm – UART Auto, IP67 Waterproof PVC Housing: another version this guide coversDYP-A21BYYUW-V1.0 High Precision Ultrasonic Sensor 3-500cm – UART Auto, IP67 Waterproof PVC Housing₹2,839
  • DYP-A12BNYTW-V1.0 Narrow Beam Ultrasonic Range Finder 25-500cm – UART Controlled IP67 Waterproof: another version this guide coversDYP-A12BNYTW-V1.0 Narrow Beam Ultrasonic Range Finder 25-500cm – UART Controlled IP67 Waterproof₹4,059
  • DYP-A12BNYUW-V1.0 Narrow Beam Ultrasonic Range Finder 25-500cm – IP67 Waterproof UART Auto: another version this guide coversDYP-A12BNYUW-V1.0 Narrow Beam Ultrasonic Range Finder 25-500cm – IP67 Waterproof UART Auto₹4,059
  • DYP-L08B50TW-V3.0 Ultrasonic Precision Rangefinder Module – 8-800cm Range, UART Controlled, IP68 Waterproof: another version this guide coversDYP-L08B50TW-V3.0 Ultrasonic Precision Rangefinder Module – 8-800cm Range, UART Controlled, IP68 Waterproof₹3,359
  • DYP-H01IO4-V1.0 Capacitive High-Precision Ultrasonic Range Finder – RS485: another version this guide coversDYP-H01IO4-V1.0 Capacitive High-Precision Ultrasonic Range Finder – RS485₹4,589
  • DYP-H01IOU-V1.0 Capacitive High-Precision Ultrasonic Range Finder 10-800cm – UART: another version this guide coversDYP-H01IOU-V1.0 Capacitive High-Precision Ultrasonic Range Finder 10-800cm – UART₹4,018
  • ESP32-WROOM-32 38-pin development board: for Wi-Fi logging and dashboardsESP32-WROOM-32 38-Pin Development Board₹389
07

Alternatives and when to choose them

  • ✓Waterproof ultrasonic sensors: JSN-SR04T and A02YYUW.
  • ✓DYP level sensors: narrow-beam tank and well sensors.
  • ✓MaxBotix WR sensors: another outdoor range.
08

Common mistakes to avoid

  • !Mounting the sensor closer than its blind zone.
  • !Angling the sensor away from the surface.
  • !Ignoring the checksum byte.
  • !Using a TTL version on a long cable instead of RS485.
09

Frequently asked questions

How do I read the A01 with an Arduino?

Read 4 bytes at 9600 baud: 0xFF header, distance high byte, low byte and checksum.

Is the A01 fully waterproof?

The probe is sealed; keep the cable joint and board dry.

Why do close objects give wrong readings?

They are inside the blind zone. Mount the sensor further away.

Can I use it in a water tank?

Yes. Mount it above the water facing down, clear of tank walls.

What is the difference between U and T versions?

U sends readings continuously; T sends one when triggered, saving power.

Parts for this guide

  • DFRobot A01NYUB Waterproof Ultrasonic Distance Sensor (28 to 750 cm)
    ₹3,865View
  • DYP-A01ANYUB-V2.0 UART-Auto Ultrasonic Sensor 28–750cm
    ₹2,189View
  • DYP-A01ANYTB-V2.0 Ultrasonic Sensor Module 28–750cm – UART Controlled
    ₹2,079View
  • DYP-A01BNYTB-V2.0 Ultrasonic Sensor Module – UART Controlled, 28-750cm Range
    ₹2,079View
  • DYP-A01BNYUB-V2.0 UART-Auto Ultrasonic Sensor 28–750cm
    ₹2,005View
  • DYP-A01BNYTW-V2.0 Ultrasonic Proximity Sensor 28-450cm Range – UART, PWM, RS485, IP67
    ₹1,359View
  • DYP-A01CNYUB-2.1 UART Auto Waterproof Ultrasonic Sensor Measuring Range 28–250cm
    ₹1,989View
  • DYP-A01ANY4B-V2.1 Ultrasonic Rangefinder Module – 28-750cm Range, RS485/UART/PWM/Switch Output, IP67
    ₹1,947View
  • DYP-A01BNYUW-V2.0 Ultrasonic Precision Rangefinder Module – 28-450cm, UART/PWM/RS485, IP67
    ₹1,649View
  • DYP-ME007YS-TX-V2.0 Ultrasonic Rangefinder Module – 28-450cm Range, IP67 Waterproof, UART Auto
    ₹939View
  • DYP-ME007YS-TX1 V2.0 UART Controlled Ultrasonic Sensor Module – 28–450cm Range
    ₹1,149View
  • DYP-ME007YS-KG V2.0 Switch Ultrasonic Sensor Module – 28-250cm Range, UART Interface
    ₹1,199View
  • DYP-A19NYUW-V1.0 High Precision Ultrasonic Sensor 28-450cm – UART Auto IP67 Waterproof
    ₹1,679View
  • DYP-A21BYYUW-V1.0 High Precision Ultrasonic Sensor 3-500cm – UART Auto, IP67 Waterproof PVC Housing
    ₹2,839View
  • DYP-A12BNYTW-V1.0 Narrow Beam Ultrasonic Range Finder 25-500cm – UART Controlled IP67 Waterproof
    ₹4,059View
  • DYP-A12BNYUW-V1.0 Narrow Beam Ultrasonic Range Finder 25-500cm – IP67 Waterproof UART Auto
    ₹4,059View
  • DYP-L08B50TW-V3.0 Ultrasonic Precision Rangefinder Module – 8-800cm Range, UART Controlled, IP68 Waterproof
    ₹3,359View
  • DYP-H01IO4-V1.0 Capacitive High-Precision Ultrasonic Range Finder – RS485
    ₹4,589View
  • DYP-H01IOU-V1.0 Capacitive High-Precision Ultrasonic Range Finder 10-800cm – UART
    ₹4,018View
  • ESP32-WROOM-32 38-Pin Development Board
    ₹389View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • USB to TTL Serial Converter (CH340G / CP2102 / FT232RL / PL2303)
    ₹85View
  • MAX485 RS-485 to TTL Module
    ₹28View
  • DYP A02YYUW Waterproof Ultrasonic Sensor UART IP67 3–450cm
    ₹1,989View
Shop Ultrasonic Distance & Ranging Sensors

Keep learning

Component guideIntermediateWaterproof Ultrasonic SensorsWaterproof 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.3 min read · SensorsComponent guideIntermediateDYP Ultrasonic Level SensorsDYP level sensors measure the distance down to water or other liquid, so you can work out tank or well level.5 min read · SensorsComponent 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 · SensorsConcept explainerBeginnerUART and Serial CommunicationA UART sends data one bit at a time over one wire with no shared clock, so both ends must agree on the speed, called the baud rate (9600 and 115200 are common).4 min read · Electronics Fundamentals

Sources

  • DYP A01 series datasheet
  • DFRobot A01NYUB wiki

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 DYP A01, ME007YS and A19 waterproof ultrasonic sensors isDYP A01, ME007YS and A19 waterproof ultrasonic sensors pinoutWiring the DYP A01, ME007YS and A19 waterproof ultrasonic sensorsExample 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 · ₹16,554

DFRobot A01NYUB Waterproof Ultrasonic Distance Sensor (28 to 750 cm) · DYP-A01ANYUB-V2.0 UART-Auto Ultrasonic Sensor 28–750cm · DYP-A01ANYTB-V2.0 Ultrasonic Sensor Module 28–750cm – UART Controlled · DYP-A01BNYTB-V2.0 Ultrasonic Sensor Module – UART Controlled, 28-750cm Range · DYP-A01BNYUB-V2.0 UART-Auto Ultrasonic Sensor 28–750cm · DYP-A01CNYUB-2.1 UART Auto Waterproof Ultrasonic Sensor Measuring Range 28–250cm · DYP-ME007YS-TX1 V2.0 UART Controlled Ultrasonic Sensor Module – 28–450cm Range · DYP-ME007YS-KG V2.0 Switch Ultrasonic Sensor Module – 28-250cm Range, UART Interface

Run itChange the inputs and watch the output

Range about 280 to 7500 mm. Closer than 280 mm reads as the minimum.

Serial monitor115200 baud
820 mm

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