Choose by job first: switch-style detection, short-range ranging, or long-range outdoor measurement
Start with one question: do you need a trigger, or a distance value? A reflective IR sensor such as the ITR20001/T reflective IR sensor has a phototransistor output and works as a reflective IR switch, not a numeric distance module. The ST188 reflective IR sensor is in the same camp, with a stated detecting distance of 4–13 mm. That makes it a line follower sensor or near-presence part, not a ranging sensor.
For compact robot obstacle avoidance or simple automation, the Waveshare 1.5 m laser distance sensor covers short-range detection, but its typical distance is 0.8 m, so treat it as a proximity sensor module for nearby targets rather than a long-range tool. Need true ranging for robots or drone altitude hold? The Waveshare TOF laser ranging sensor with 5 m range is the step up, with an integrated MCU and ranging algorithm. For outdoor measurement, narrow tanks, or precise long-distance aiming, move to the Waveshare Type C 25 m ToF sensor with 100K LUX resistance and 1°–2° FOV, or the Waveshare Type D 50 m model, which adds UART/I2C/IO support and reverse connection protection.
If you are choosing between a laser/ToF module here and a low-cost ultrasonic distance sensor for wide-cone obstacle detection, ultrasonic makes more sense when beam width matters less than price. Some jobs belong outside this category as well: wide-cone low-cost sensing often points to ultrasonic, and some tank level or altitude projects are better served by pressure-based sensing. No cheap sensor does everything. Optical sensors struggle with black matte, mirror, and glass, while ultrasonic struggles with soft, fabric, and angled targets. For a simple trigger-only IR use case, it also helps to see how simple IR obstacle switches behave when you only need a trigger.
Spec and fit matrix: range, beam, interface, and outdoor suitability
The specs that decide the purchase are distance class, output type, beam width, and whether the part is a true measuring sensor or only a switch. Those differences matter more than the label alone, especially when you compare a tof distance sensor, a laser distance sensor, and an infrared distance sensor side by side. If you are weighing these against the familiar VL53L0X class, it helps to see what I2C laser ToF integration looks like in an Arduino build. If what you need is a reflective optical component rather than a measuring module, the better comparison is in color, light, and image sensors.
| Product name |
Sensor family |
Output / interface |
Stated range or detecting distance |
Beam / FOV |
Ambient-light note |
Best-fit use |
| Waveshare TOF Laser Ranging Sensor - 5m |
ToF laser ranging sensor |
True measuring sensor; UART/CAN, cascading up to 8x/7x |
5 m |
Adjustable 15°–27° |
— |
Robot obstacle avoidance, drone altitude setting, route planning |
| Waveshare Laser Distance Sensor - 1.5m |
Laser distance sensor |
True measuring sensor; digital output |
1.5 m max, 0.8 m typical |
— |
— |
Simple short-range automation and obstacle detection |
| Waveshare TOF Sensor Type C - 25m |
ToF laser ranging sensor |
True measuring sensor; UART/I2C/IO |
25 m |
1°–2° |
100K LUX light resistance |
Outdoor and narrow-target measurement |
| Waveshare TOF Sensor Type D - 50m |
ToF laser ranging sensor |
True measuring sensor; UART/I2C/IO |
50 m |
— |
100K LUX light resistance |
Longest-distance projects and harsher wiring |
| ITR20001/T Reflective IR Sensor |
Reflective IR sensor |
Photoelectric switch; phototransistor output |
— |
— |
940nm peak wavelength |
Fast reflective sensing, line following, optical switch tasks |
| ST188 Reflective IR Sensor - Adjustable Distance |
Reflective IR sensor |
Photoelectric switch |
4–13 mm detecting distance |
— |
— |
Ultra-short-range non-contact trigger sensing |
These numbers change fit quickly. The 5 m Waveshare ToF module suits multi-sensor robots because it supports UART/CAN cascading and lets you tune FOV from 15° to 27°, but the trade-off is measurement spread at longer range, with standard deviation up to 8 cm at 3–5 m. The 1.5 m Waveshare module is easier to use as a digital automation part thanks to its digital output interface, integrated boost circuit, and signal output indicator, but it is not the right call for longer-range measurement. At the component end, the ITR20001/T uses a phototransistor output, 30 V max collector-emitter voltage, 940nm peak wavelength, and 25µs rise/fall time, which marks it as a fast reflective sensing part rather than a packaged meter. The ST188 is a non-contact reflective trigger with adjustable 4–13 mm detecting distance.
What changes real-world results: target surface, sunlight, and dead zones
Headline range is not the same as usable range. Datasheet-style maximum range assumes favorable targets and conditions; familiar examples in this class include VL53L0X modules working more realistically around 1.2–2 m, and TF-Luna reaching 8 m at 90% reflectivity but only 2.5 m at 10% reflectivity. A laser distance sensor that looks adequate on paper can fall short on dark or low-reflectivity targets.
Surface and light matter just as much. Optical sensors struggle with black matte objects, mirrors, glass, and steep angles. Ultrasonic alternatives are color- and light-blind, but they have wide cones and often struggle with soft or angled surfaces. Cheap ToF and reflective IR sensors also degrade badly in sunlight, while sunlight-rated modules with 70–100K lux tolerance sit higher in the range. In this product set, the Waveshare Type C 25 m ToF sensor and Waveshare Type D 50 m sensor are the outdoor-capable choices because both state 100K LUX ambient-light resistance.
Beam width decides whether the sensor can isolate the target at all. HC-SR04 is roughly 15–30°, VL53L0X about 25–27°, TF-Luna about 2–3°, and Waveshare Type C 1°–2°. That narrow FOV is what makes Type C more practical for a tank level sensor in a narrow vessel or for precise target selection near surrounding walls. Dead zone matters just as much: VL53L0X is around 5 mm, HC-SR04 around 2–5 cm, and JSN-SR04T around 25 cm. For tank mounting, place the sensor above maximum fill and make sure the dead zone still leaves measurable space. “Waterproof” does not mean submersible, and common waterproof ultrasonic options such as JSN-SR04T can be poor in narrow tanks because of their wide angle and roughly 25 cm dead zone. If you want the cheaper wide-cone option for comparison, see how the common HC-SR04 ultrasonic option compares when you want a cheaper wide-cone sensor. For some tank or altitude projects, a pressure-based alternative is the better fit than optical or ultrasonic sensing.
Integration checks before you buy: voltage, interface, and multiple-sensor setups
- Most distance sensors in this class work with Arduino UNO/Nano, ESP32, ESP8266, Raspberry Pi, STM32, and Pico boards, but logic voltage still has to match. If you are building around an ESP32, check signal levels first, not just supply voltage.
- HC-SR04 ECHO outputs 5 V and can damage 3.3 V GPIO on ESP32 if connected directly. ESP32 and RP2040 GPIOs are not 5 V tolerant, so use a resistor divider or level shifter on any 5 V signal line.
- Pick the interface for the wiring run and host, not just for familiarity. I2C is convenient for short internal wiring; UART is simpler over longer cables and is often preferred for drones because it avoids the usual I2C latency and bus-sharing friction.
- If you want multiple ToF sensors on one I2C bus, plan for address handling before you buy. All VL53L0X modules boot at address 0x29 and need XSHUT-based re-addressing on every boot, so multi-sensor setups are not plug-them-in parallel jobs.
- Inside this category, the Waveshare 5 m TOF laser ranging sensor offers a cleaner route for arrays because it supports UART/CAN cascading up to 8x/7x.
- The Waveshare Type C 25 m module and Waveshare Type D 50 m module both support UART/I2C/IO, which broadens host compatibility for automation and embedded builds.
- For Home Assistant and ESPHome users, VL53L0X is supported, but multi-sensor ESPHome setups still need enable_pin or XSHUT configuration. This is where it helps to review how multi-sensor I2C ToF setups differ from single-sensor Arduino wiring.
Common misbuys to avoid
- Don’t buy a reflective IR switch like ITR20001/T or ST188 if you need a numeric distance reading. They are trigger parts, not measuring modules.
- Don’t choose a short-range ToF or laser module for outdoor work beyond 2 m just because it says “laser.” Sunlight and reflectivity end that plan before the headline range does.
- Don’t ignore minimum range. Typical reference points are about 5 mm for VL53L0X, about 2–5 cm for HC-SR04, and about 25 cm for JSN-SR04T.
- Don’t assume clone and genuine modules behave the same. Clone parts can show constant 15–40 mm offsets, drift, or unstable readings.
- Don’t read 1 mm resolution as 1 mm accuracy. Budget ToF often lands around ±1–3 cm in real use.
- Don’t choose only by headline accuracy if the target is static. Repeatability and jitter often matter more, and in some side-by-side setups ToF can be more variable than ultrasonic.
- Don’t rule out analog IR entirely if you want actual IR distance output rather than a binary IR obstacle sensor; this is where it helps to see what an analog IR distance sensor looks like if you want actual distance without I2C.
- Don’t default to optical if your priority is low-cost wide-beam detection or softer-surface behavior; that is the point where the ultrasonic category is the better comparison.
FAQs on Distance Sensors
What’s the difference between ultrasonic, ToF laser, and reflective IR?
Ultrasonic is the cheap, color- and light-blind wide-cone option. ToF laser is the narrower-beam, more precise but light-dependent option. Reflective IR is only for very short-range detection, with ST188 rated at 4–13 mm and ITR20001/T using a photoelectric switch output. The right choice depends on whether you need a trigger or a real distance value, and how much the target surface and ambient light will vary.
Why is real range often shorter than the listed maximum?
Datasheet max range assumes ideal white targets indoors, and familiar reference points are VL53L0X at roughly 1.2–2 m in practice and TF-Luna at 8 m on 90% reflectivity but only 2.5 m on 10%, while the supplied Waveshare families here are rated 1.5 m, 5 m, 25 m, and 50 m. Real range drops with darker targets, steeper angles, and more ambient light, so use the rating as a best-case ceiling, not a guaranteed field result.
Which models here are suitable for outdoor or sunlight-heavy use?
The Waveshare TOF Sensor Type C and Waveshare TOF Sensor Type D are the outdoor-capable choices here because both state 100K LUX ambient-light resistance, while cheap ToF and reflective IR parts degrade badly in sunlight. If the install is outdoors or near strong daylight, start by filtering for those two models first.
Can I connect these to an ESP32 directly?
HC-SR04 ECHO outputs 5 V, and ESP32 or RP2040 GPIOs are not 5 V tolerant, so a divider or level shifter is needed on any 5 V signal line. Many sensors still work with an ESP32, but signal voltage has to be checked separately from supply voltage.
Can I run more than one distance sensor at once?
VL53L0X modules all boot at I2C address 0x29, so multiple units need XSHUT-based re-addressing on every boot, while the supplied 5 m Waveshare TOF module supports UART/CAN cascading up to 8x/7x. That makes the interface choice part of the purchase decision when you know the project needs an array.
Should I choose VL53L0X or VL53L1X?
VL53L1X is the step up when you need about 4 m range, around 50 Hz operation, or programmable 15–27° FoV, while VL53L0X stays the lower-cost choice around roughly 2 m and can be slightly better under 1.4 m with cover glass. If your requirement is clearly under 2 m indoors, L0X is the simpler fit; if it is near 4 m or needs more FOV control, L1X is the better match.
Are these laser sensors safe for eyes?
VL53L0X-class modules are Class 1 laser under IEC 60825-1 and are eye-safe in normal use, but adding focusing optics changes the safety assumptions. For standard module use in embedded projects, the safety concern is lower than many shoppers expect.
Glossary
- ToF (Time-of-Flight)
- — A measuring method that calculates distance by timing how long reflected light takes to return, which is why it suits compact laser ranging modules.
- Dead zone / minimum range
- — The closest distance a sensor can measure correctly, and often the hidden spec that decides whether close-range or tank projects work at all.
- FOV / beam angle
- — The width of the area the sensor sees, which is why a sensor with enough range can still fail in a narrow tank or near side walls.
- Accuracy vs resolution
- — Resolution is the smallest step reported, while accuracy is how close that reading is to the real distance; 1 mm resolution does not mean 1 mm real-world accuracy.
- XSHUT
- — A shutdown or enable pin used to wake I2C ToF sensors one at a time so you can assign different addresses in multi-sensor builds.
- Ambient light immunity (lux rating)
- — A rough indicator of how much room light or sunlight an optical sensor can tolerate before readings degrade, which separates indoor-only from outdoor-capable parts.
- Class 1 laser
- — An eye-safe laser classification for normal use, relevant because many small ToF modules raise unnecessary safety concerns.
- UART
- — A simple serial interface that is often easier than I2C over longer cables or in faster telemetry-style builds such as drones.
Please complete your information below to login.
Sign In
Create New Account