HC-SR04 ultrasonic distance sensor
Sensors· Distance (ToF, ultrasonic, LiDAR)

HC-SR04 ultrasonic distance sensor

generic released 2010 current consider budget

The €1 ultrasonic ranger (2 cm - 4 m). Newer batches use the RCWL-9610 chip and run at 3.3 V (RCWL-1601/US-100 similar).

Verdict. Fine for robots and sump pits. For ESP32 look for RCWL-9610/RCWL-1601 3.3 V versions (no level shifter); for precision use ToF.

Specs

Range2 cm - 4 m
Beam~15° cone
Interfacetrigger/echo pulse
Supply5 V (3.3 V on RCWL-9610 batches)

Prices

LaskaKit€1.43CZK 35RCWL-9610 version· from search results
Botland€1.90justPi· from search results
AliExpress€1.91HC-SR04 module· from search results
  • ~€1-2
  • Works on soft/transparent targets ToF misses
  • Universal support
  • Jumpy readings, needs filtering
  • 5 V echo needs level shifting on ESP32
  • Wide beam picks up walls

What people say mixed

Loved for price and simplicity; HN users note unstable readings.

“I use HC-SR04 because they are so cheap but they are really unstable, the values they return tend to jump around a lot.” — HN, 2021-01
“I've also built a sensor (HC-SR04, ESP32, ESPHome, Home Assistant) to monitor the water level in my sump pit” — HN, 2023-11