ESP32: HC-SR04 Ultrasonic Distance
SensorsbeginnerESP32

ESP32: HC-SR04 Ultrasonic Distance

Measure distance with an HC-SR04 sensor on ESP32. TRIG on GPIO18, ECHO on GPIO19.

What you'll simulate

  • ✓Real ESP32 emulation — cycle-accurate, no hardware needed
  • ✓1 interactive component on the canvas
  • ✓Serial Monitor included — see output in real time
← Back to examples