Component guide · Intermediate · 3 min read
VL53L0X and VL53L1X Laser Distance Sensors
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
The VL53L0X and VL53L1X are tiny time-of-flight sensors from ST. They time how long a pulse of invisible 940 nm laser light takes to bounce back, giving distance in millimetres over I2C. The VL53L0X reaches about 1.2 m normally and 2 m in long-range mode; the VL53L1X reaches about 4 m. Their narrow beam beats ultrasonic sensors for small targets, but sunlight and dark or glass surfaces reduce range.
Key specs at a glance
- VL53L0X range
- Up to about 1.2 m (2 m in long-range mode)
- VL53L1X range
- Up to about 4 m, programmable region of interest
- Light source
- 940 nm VCSEL laser, Class 1 eye-safe
- Field of view
- About 25 to 27°
- Interface
- I2C, default address 0x29; XSHUT pin to set other addresses
- Supply
- 2.6 to 3.5 V chip; most modules accept 3.3 to 5 V
ToF or ultrasonic?
| VL53L0X | VL53L1X | HC-SR04 | |
|---|---|---|---|
| Range | 0.03 to 1.2 m (2 m long-range) | 0.04 to 4 m | 0.02 to 4 m |
| Beam | Narrow, about 25° | Narrow, adjustable | Wide, about 15 to 30° cone |
| Size | Tiny | Tiny | Large |
| Works on | Most surfaces; weak on black and glass | Same | Hard flat surfaces; poor on soft fabric |
| Sunlight | Reduces range | Reduces range | Not affected |
| Interface | I2C | I2C | Trigger and echo pins |
- Range
- VL53L0X:
- 0.03 to 1.2 m (2 m long-range)
- VL53L1X:
- 0.04 to 4 m
- HC-SR04:
- 0.02 to 4 m
- Beam
- VL53L0X:
- Narrow, about 25°
- VL53L1X:
- Narrow, adjustable
- HC-SR04:
- Wide, about 15 to 30° cone
- Size
- VL53L0X:
- Tiny
- VL53L1X:
- Tiny
- HC-SR04:
- Large
- Works on
- VL53L0X:
- Most surfaces; weak on black and glass
- VL53L1X:
- Same
- HC-SR04:
- Hard flat surfaces; poor on soft fabric
- Sunlight
- VL53L0X:
- Reduces range
- VL53L1X:
- Reduces range
- HC-SR04:
- Not affected
- Interface
- VL53L0X:
- I2C
- VL53L1X:
- I2C
- HC-SR04:
- Trigger and echo pins
Wiring and multiple sensors
VIN to 3.3 V or 5 V (if the module has a regulator), GND to GND, SDA and SCL to the I2C pins. Use the Pololu VL53L0X or VL53L1X library, or Adafruit's.
Every sensor starts at address 0x29, so to use several, wire each XSHUT pin to its own GPIO. Hold all XSHUT pins LOW, then enable one sensor at a time and give it a new address with setAddress(). Addresses reset at power-off, so do this in setup() every time. Note that the TCS34725 colour sensor also uses 0x29.
Getting good readings
Remove the protective film from the sensor window if there is one. Avoid putting it behind clear plastic unless the cover is designed for ToF, as reflections from the cover cause false short readings. Readings are steadier with a longer timing budget (for example 50 to 200 ms) at the cost of speed. For robots, mount several sensors angled outwards for obstacle avoidance; see robot chassis.
Common mistakes to avoid
- Leaving the protective film on the window.
- Putting two sensors on one bus without changing addresses.
- Mounting behind a clear plastic cover.
- Expecting 2 m indoors in bright sunlight.
- Clashing with a TCS34725 at 0x29.
Frequently asked questions
Is the VL53L0X laser safe for eyes?
Yes. It is a Class 1 laser product, safe under normal use, and the 940 nm light is invisible.
VL53L0X or HC-SR04?
The VL53L0X is smaller with a narrow beam for precise short distances; the HC-SR04 reaches further in sunlight and is cheaper.
How do I use two VL53L0X sensors?
Wire each XSHUT pin to a GPIO, start one at a time and give each a new I2C address in setup().
Why does my VL53L0X read 8190 or 65535?
Out of range or no return signal. Check the target is within range, not black or glass, and the film is removed.
Does the VL53L1X work at 5 V?
The chip runs at 2.6 to 3.5 V, but most breakout boards include a regulator and level shifting for 5 V boards.
Parts for this guide
- ₹293View
Terms in this guide
Projects that use it
Put this into practice: 12 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- STMicroelectronics VL53L0X datasheet
- STMicroelectronics VL53L1X datasheet
- Pololu VL53L0X library documentation
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

