Choose the right ultrasonic sensor by project
For most indoor Arduino builds, the starting point is still the classic HC-SR04 family. Move up only when the project forces it: fewer pins, 3.3 V compatibility, lower current draw, serial output, or a waterproof separate probe. If you still need the controller, pair the sensor with one of these Arduino boards rather than expecting the module to run standalone. For a first build on the default HC-SR04 path, these starter Arduino wiring and first ultrasonic project steps are the quickest way to get running.
| Project / requirement |
Best-fit product family |
Best-fit product from this category |
Why it fits |
Key trade-off |
| Beginner Arduino or low-cost indoor robot |
HC-SR04 class |
HC-SR04 Ultrasonic Sensor Module |
The default recommendation for Arduino tutorials and low-cost indoor obstacle avoidance. It gives you 2 cm to 400 cm range, 1 cm resolution, a 4-pin TTL interface, and 15 mA working current with standard Trig/Echo wiring. |
5 V Echo output and indoor-only use in practice. |
| Indoor build that needs fewer I/O pins or a small HC-SR04-style upgrade |
HY-SRF05 class |
HY-SRF05 ultrasonic module with single-pin mode |
Covers 2 cm to 450 cm with 0.3 cm resolution. Its Mode pin also allows single-pin Trigger/Echo when grounded. |
One-pin mode needs specific wiring, and it is still an open-board indoor module. |
| 3.3 V host, easier serial integration, or temperature drift concerns |
US-100 class |
US-100 ultrasonic sensor with temperature compensation |
Works from 2.4 V to 5.5 V and supports Serial UART at 9600 baud or Pulse Width mode, so it fits 3.3 V hosts and buyers who want a simpler UART path. |
Mode selection depends on the rear jumper, and it costs more than basic HC-SR04 boards. |
| Outdoor, humid, or tank install where close readings are not needed |
Waterproof separate-probe class |
JSN-SR04T waterproof distance module |
For outdoor and tank use, waterproof separate-probe models are the correct family; bare HC-SR04-class boards are indoor-only in practice. This model uses a waterproof probe design, covers 20 cm to 600 cm, and offers 1 mm resolution. |
Its 20–25 cm blind zone rules out shallow tanks and close thresholds. |
| Shallow tank or wet install that needs close sensing |
Waterproof UART class |
A02YYUW waterproof 100° ultrasonic sensor |
IP67 protection, UART output, a 3 cm blind zone, and 3–450 cm range make it the safer waterproof choice when the liquid level or target comes close to the probe. |
The 100° coverage is wide, so nearby walls and clutter matter more. |
| Low-power battery build |
Low-current indoor class |
US-015 high precision ultrasonic sensor |
Draws 2.2 mA and offers 2 cm to 400 cm range with 0.3 cm + 1% accuracy, which suits battery-powered robotics or security nodes. |
Standard GPIO output only; no waterproofing. |
| Low-power build with interface flexibility |
Multi-interface low-current class |
RCWL-1605 multi-interface ultrasonic sensor |
Supports GPIO, UART, IIC, and 1-WIRE via resistor settings, runs from 2.8 V to 5.5 V, and draws 2 mA. It fits power-sensitive builds with changing interface needs. |
25 cm blind zone is a real penalty for close-range work. |
| Space-constrained build with multiple interface options |
Compact multi-mode class |
RCWL-1005 mini multi-mode sensor |
Compact body, GPIO/UART/IIC/1-Wire support, 4.5 m range, ±2% accuracy, and 2 mA typical current make it useful where board space is tight. |
25 cm blind spot means it only fits builds where the target stays well beyond the dead zone. |
Ultrasonic sensor compatibility, blind zone, and interface checklist before you buy
- What board are you using? The HC-SR04 echo pin outputs 5 V; on ESP32, ESP8266, and Raspberry Pi you should use a voltage divider or level shifter, or choose a native lower-voltage-friendly option instead. If you are building around an ESP32, the US-100 and RCWL-1605 family are easier fits than an HC-SR04 ultrasonic module.
- How close can the target get? HC-SR04-class modules start around 2 cm, but the JSN-SR04T waterproof module has a 20–25 cm blind zone and the SR04T waterproof module with 2.5 m cable has a 25 cm blind distance.
- Do you want Trig/Echo or serial output? The US-100 module switches between UART and Pulse Width mode with a jumper on the back. The HY-SRF05 can save pins by grounding its Mode pin for single-pin operation. The JSN-SR04T supports Trigger, Serial, or Automatic modes via the R27 jumper, so version and mode checking matters before you follow a tutorial.
- Is the board or only the probe exposed? For wet installs, probe-only waterproof designs are the right family. Open-board modules are not.
For buyers choosing US-100 specifically for interface flexibility, these US-100 UART or pulse-width wiring examples make the mode choice clearer.
| Product family |
Operating voltage |
Minimum distance / blind zone |
Output style |
Extra buying note |
| HC-SR04 |
— |
About 2 cm |
4-pin TTL Trig/Echo |
Echo is 5 V, so 3.3 V GPIO usually needs a voltage divider or level shifter. |
| HY-SRF05 |
— |
2 cm |
Trig/Echo, plus single-pin mode |
Mode pin can reduce pin use when grounded. |
| US-100 |
2.4 V to 5.5 V |
— |
Serial UART at 9600 baud or Pulse Width |
Better fit for broad host compatibility and 3.3 V-friendly builds. |
| JSN-SR04T / SR04T |
— / 5 V on SR04T |
20–25 cm / 25 cm |
Trigger, Serial, or Automatic on JSN-SR04T; — on SR04T |
Good for remote wet sensing, but not for shallow tanks or close thresholds. |
| A02YYUW |
— |
3 cm |
UART |
Safer waterproof choice than JSN-SR04T where fill level gets close to the probe. |
| RCWL-1605 / RCWL-1005 |
2.8 V to 5.5 V / — |
25 cm / 25 cm |
GPIO, UART, IIC, 1-WIRE |
Broad interface support with low current, but both trade that for a large dead zone. |
Indoor ultrasonic modules vs waterproof modules: what changes in real use
“Waterproof” in this category means the probe or transducer is sealed, not that the control board is waterproof. That distinction matters. Bare HC-SR04-class modules are poor choices for tanks or outdoor installs because condensation and moisture attack the exposed transducers and board. A separate-probe design such as the JSN-SR04T waterproof module is the right family when the sensing point is wet, and the SR04T version with a 2.5-meter cable helps when the electronics box must stay farther away and dry. For a waterproof ultrasonic sensor for water tank level, the A02YYUW is the better close-range choice because it combines IP67 protection, UART output, and a 3 cm blind zone.
| Attribute |
Indoor open-board modules |
Waterproof probe modules |
| Moisture exposure |
Open board and exposed transducers; indoor-only in practice |
Sealed probe suited to tanks, humidity, and outdoor sensing points |
| Close-range sensing |
HC-SR04-class starts around 2 cm |
JSN-SR04T-class gives up close range with a 20–25 cm blind zone; A02YYUW starts at 3 cm |
| Board protection |
Sensor board is exposed |
Probe is protected, but the control board still needs a dry enclosure or sheltered mount |
| Cable / mounting flexibility |
Short onboard module format |
SR04T-style separate probe can place the board remotely; one version includes a 2.5 m cable |
| Confined-space behavior |
Easier in small spaces |
JSN-SR04T-family wide beam behavior, often discussed around 45–75°, can create multi-path echoes in narrow pipes or tanks; A02YYUW also uses a wide 100° sensing angle |
If you are planning a tank monitor after choosing a waterproof probe, these basic ultrasonic tank-level project ideas show the usual mounting approach.
What ultrasonic sensors detect well — and what they miss
An ultrasonic distance sensor does not read a laser-like point. It sends a sound cone, and for general category expectations you should think in the roughly 15–30° range unless the product is specifically wider, so nearby walls, floors, and brackets can create ghost echoes. Hard, flat, perpendicular targets such as walls, boxes, and car bodies are the easiest surfaces for any ultrasonic ranging sensor. Soft fabric, foam, clothing, and curtains absorb sound; angled surfaces deflect it; and thin objects are easy to miss beyond short range.
Still water is a good fit for top-down level measurement when the sensor is mounted perpendicular above the surface. Ripples, foam, and steep liquid angles scatter the echo. If the real job is human presence only, PIR is the simpler and cheaper choice because a proximity ultrasonic sensor reports distance to anything in the cone, not “person detected.” If the target is soft, very small, or needs short-range precision under 2 m, ToF or laser families are the better fit. For difficult tanks, this alternative non-contact liquid level sensing approach is a better match than air-based ultrasonic sensing.
| Target or use case |
Ultrasonic fit |
Why |
Better alternative when not a fit |
| Walls, boxes, car bodies |
Good |
Hard, flat, perpendicular surfaces return strong echoes |
— |
| Still water surface from above |
Good |
Smooth top-down liquid level monitoring can reflect well |
— |
| People in clothing |
Poor to mixed |
Clothing absorbs sound and body angles vary |
PIR for presence-only projects |
| Soft fabric or curtains |
Poor |
Soft targets absorb the ping instead of reflecting it |
ToF / laser |
| Thin objects |
Poor beyond short range |
Small cross-section is easy to miss |
ToF / laser |
| Presence-only automation |
Poor fit for the task |
Reports distance to any object in the cone, not human presence |
PIR |
Quick spec matrix for the products on this page
| Product name |
Family / type |
Range |
Blind zone / minimum distance |
Operating voltage |
Interface / modes |
Current draw |
Waterproofing |
Best-fit project |
Key trade-off |
| HC-SR04 Ultrasonic Sensor Module |
HC-SR04 classic, dev module |
2 cm to 400 cm |
2 cm |
— |
4-pin TTL |
15 mA |
No |
Baseline classic Arduino module |
5 V echo and indoor use only in practice |
| HY-SRF05 with single-pin mode support |
HY-SRF05, dev module |
2 cm to 450 cm |
2 cm |
— |
Trig/Echo; single-pin support via grounded Mode pin |
— |
No |
HC-SR04-style build with pin-saving mode |
Still an open-board indoor module |
| US-100 with temperature compensation |
US-100, dev module |
— |
— |
2.4 V to 5.5 V |
Serial UART at 9600 baud or Pulse Width |
— |
No |
Higher-compatibility upgrade path |
Jumper-selected mode |
| JSN-SR04T Waterproof Module |
JSN-SR04T, waterproof sensor |
20 cm to 600 cm |
20–25 cm |
— |
Trigger / Serial / Automatic via R27 |
— |
Waterproof probe |
Waterproof sensing where close range is not needed |
Major blind-zone penalty |
| US-015 High Precision Sensor |
US-015, dev module |
2 cm to 400 cm |
2 cm |
— |
Standard GPIO output |
2.2 mA |
No |
Low-power indoor option |
No waterproofing |
| SR04T Waterproof Module with 2.5m Cable |
JSN-SR04T, waterproof sensor |
— to 4.5 m |
25 cm |
5 V |
— |
— |
Waterproof sensor |
Remote waterproof probe install |
Not suitable for close sensing |
| RCWL-1605 with Multi-Interface Support |
RCWL-1605, dev module |
— |
25 cm |
2.8 V to 5.5 V |
GPIO / UART / IIC / 1-WIRE via resistor settings |
2 mA |
No |
Low-power multi-interface build |
Dead-zone penalty |
| A02YYUW Waterproof 100° Sensor |
A02YYUW, waterproof module |
3 cm to 450 cm |
3 cm |
— |
UART |
— |
IP67 |
Close-range waterproof sensing |
Very wide 100° coverage |
| RCWL-1005 Mini Multi-Mode Sensor |
RCWL-1005, mini dev module |
— to 4.5 m |
25 cm |
— |
GPIO / UART / IIC / 1-Wire |
2 mA typical |
No |
Compact multi-interface build |
Not for close sensing |
| — |
— |
— |
— |
— |
— |
— |
— |
— |
— |
For shoppers choosing the HY-SRF05 specifically, these HY-SRF05 wiring and single-pin mode examples cover the Mode pin setup.
FAQs on Ultrasonic Sensors
Which ultrasonic sensor should I buy for Arduino?
For the best ultrasonic sensor for Arduino, start with the HC-SR04 for the lowest-cost, most documented option. Move to HY-SRF05 or US-100 for upgrades, and choose JSN-SR04T or A02YYUW only when the install is wet or outdoors. That keeps the first build simple and aligned with the tutorials most beginners already find first.
Is HC-SR04 safe to use with ESP32, ESP8266, or Raspberry Pi?
No — the HC-SR04 Echo pin is 5 V, so ESP32, ESP8266, and Raspberry Pi boards usually need a voltage divider or level shifter on that line. If you are buying new for a 3.3 V system, the US-100 and RCWL-1605 are easier alternatives because they are better suited to lower-voltage hosts.
Why does a waterproof sensor sometimes fail outdoors anyway?
Because on JSN-SR04T- and A02YYUW-style products the sealed probe is protected, but the control board still needs a dry enclosure or sheltered mounting. “Waterproof” here is about the sensing head, not unlimited exposure for the whole module.
Why does JSN-SR04T read 0 or miss very close targets?
Because the JSN-SR04T has a 20–25 cm blind zone, while HC-SR04 starts around 2 cm and A02YYUW starts around 3 cm. If the target enters that dead zone, the reading can drop out even when the sensor is working normally.
How far can these sensors really measure in practice?
Although many modules claim 400–450 cm maximum range, reliable real-world readings are more often around 250–350 cm on a good target. Hard, flat surfaces at a right angle give the best results; soft or angled targets reduce usable range quickly.
Can an ultrasonic sensor detect people, fabric, or objects behind glass?
Not reliably — fabric and clothing absorb sound, angled surfaces deflect echoes, and hard barriers like glass or acrylic do not pass sound in a dependable way for this use. If the goal is just human presence or motion, PIR is the more appropriate sensor class.
Can I connect several ultrasonic sensors to one Arduino?
Yes, but they should be triggered sequentially to avoid cross-talk, with roughly 33–60 ms between readings. If several sensors listen at the same time, one module can hear another module’s ping and return a false distance.
Glossary
- Blind zone / dead zone
- The minimum distance where the sensor cannot separate its own ping from the return echo, so readings are unreliable or zero.
- Echo pin
- The output line that carries the return pulse timing, and on HC-SR04 it is the 5 V signal that creates compatibility issues for 3.3 V GPIO.
- UART mode
- A serial output mode where the module sends distance data directly instead of making your code measure pulse timing.
- Beam angle / detection cone
- The spread of the ultrasonic signal, which determines how much wall, floor, liquid surface, or nearby clutter the sensor can “see.”
- IP67
- A dust- and water-resistance rating that, in this category, applies to the probe rather than the control board.
- Level shifter / voltage divider
- A simple circuit used to bring a 5 V Echo signal down to 3.3 V for boards such as ESP32, ESP8266, and Raspberry Pi.
- Cross-talk
- Interference that happens when one ultrasonic sensor hears another sensor’s ping and reports a false reading.
- Temperature compensation
- Built-in correction for changes in the speed of sound as air temperature changes, which helps keep readings steadier in variable conditions.
Please complete your information below to login.
Sign In
Create New Account