distance SensorsCompatible with ESP32
The list of distance sensors for your ESP32 projects, complete with wiring guides and code examples.
Distance sensors enable your ESP32 or Arduino board to measure how far an object is from a reference point. These sensors are widely used in robotics, automated parking systems, obstacle detection, and touchless interfaces. Depending on the module, they use technologies like ultrasonic sound, infrared reflection, or laser time-of-flight (ToF) to provide accurate, real-time distance measurements.
Popular modules include the HC-SR04 ultrasonic sensor, VL53L0X ToF laser sensor, and Sharp GP2Y0A IR distance sensor. These components connect easily to the GPIO pins on ESP32 or Arduino boards and are supported by libraries and example code in both the Arduino IDE and PlatformIO.
With ESP32, you can wirelessly transmit distance data over Wi-Fi or Bluetooth, while Arduino boards are excellent for creating simple, standalone measurement tools or real-time obstacle detectors for mobile robots.
Sensors List

TOF200C
The TOF200C is a compact, low-cost laser-ranging sensor based on the VL53L0X time-of-flight chip from...

TOF050C
The TOF050C is a short-range laser-ranging sensor using the VL6180 chip, offering highly accurate distance measurements...

TOF400C
The TOF400C is a long-range laser-based time-of-flight (ToF) sensor based on the VL53L1X chip from STMicroelectronics....

TOF10120
The TOF10120 is an advanced, high-performance laser distance sensor that uses time-of-flight technology to measure...

VL53L0X
The VL53L0X is an advanced Time-of-Flight distance sensor offering accurate, laser-based measurements over a range of 30...

VL53L1X
The VL53L1X is a high-accuracy long-distance laser-ranging sensor from STMicroelectronics. It uses a 940nm VCSEL emitter...

VL6180X
The VL6180X is a short-range proximity and ambient light sensor that combines a 3-in-1 system: IR emitter, sensor, and...

VL53L0X V2
The VL53L0X V2 (GY-VL53L0XV2) is a high-accuracy Time-of-Flight (ToF) laser ranging sensor that can measure distances up...

GY-530
The GY-530 is a breakout board for the VL53L0X Time-of-Flight (ToF) sensor from STMicroelectronics. It uses FlightSense...

HC-SR04
The HC-SR04 is a versatile ultrasonic distance sensor capable of measuring distances up to 4 meters with high precision....

JSN-SR04T
The JSN-SR04T is a waterproof ultrasonic distance sensor ideal for outdoor and industrial applications. With a measuring...

A02YYUW
The A02YYUW is a waterproof ultrasonic distance sensor ideal for outdoor and industrial applications. With a measuring...