Most monitoring problems that sound different are the same question underneath: how far away is the surface in front of the sensor? A waste bin is full if the rubbish is near the lid. A tank is low if the liquid is far from the top. A bay is occupied if something sits close above it. One distance sensor answers all three — but the two technologies that measure that gap, ultrasonic and time-of-flight laser, behave very differently, and picking the wrong one is the most common reason a deployment reads badly. Here's how each works, where each wins, and how to specify the right one.
The Short Answer
| If your target is… | Choose | Why |
|---|---|---|
| Dusty, dark, angled or messy (rubbish, rubble, slurry) | Ultrasonic | Sound tolerates dust and scattering surfaces; a wide beam reads a general level |
| Clean, precise, deep or stepped (clear tanks, narrow shafts) | ToF laser | Light gives a narrow, accurate point measurement at longer range |
Both run on low power and report only on a schedule or threshold, so battery units in the distance and level sensing range last years rather than weeks. The detail below explains why the table holds.
How a Distance Sensor Becomes Useful Data
A distance sensor sits above whatever it watches and measures the gap to the surface below. Over a bin lid, that gap converts directly to a fill percentage. Over a tank, to a level. Over a bay, a short reading means occupied. The sensor only reports distance; the application decides what the distance means. Because it transmits rarely — and transmitting is the expensive act for any battery device — it spends almost all its time asleep, which is the whole reason multi-year battery life is normal here.
Ultrasonic: Sound Pulses
An ultrasonic sensor emits a sound pulse and times the echo. It's mature and forgiving, coping well with dust, fog and scattering targets that a laser struggles to read — which makes it a strong fit for messy contents like waste, rubble or slurry. The Milesight EM400-UDL ultrasonic sensor is a LoRaWAN unit built for exactly these conditions, with an IP67 enclosure for outdoor and in-lid mounting.
The trade-off is beam shape. Sound spreads in a cone, so an ultrasonic sensor reads an area rather than a precise point, and very uneven surfaces can return a confused echo. For bin fill, tank level and presence, that wider beam is usually an advantage — you want the general level, not a pinpoint. Where there's no LoRaWAN coverage, the EM400-UDL also exists in an NB-IoT cellular version that connects straight to the mobile network.
Time-of-Flight Laser: Light Pulses
A time-of-flight (ToF) laser sensor does the same job with light, timing how long the reflection takes to return. Light gives a narrow, precise beam, so it measures a tight spot rather than a cone and reads longer distances and stepped or angled surfaces more accurately. The Milesight EM400-TLD laser sensor is the LoRaWAN unit for these precision cases — clean tanks, deep narrow shafts, defined targets.
Its weakness is the inverse of ultrasonic's strength. Heavy dust, steam or a dark, non-reflective surface can absorb or scatter the light and degrade the reading. So the laser excels exactly where ultrasonic struggles, and struggles exactly where ultrasonic excels — which is why the target, not the spec-sheet range, drives the choice.
A Real Deployment
A waste-management contractor wanted to stop sending trucks to half-empty bins across a town. The bins held mixed, uneven rubbish, often bagged at odd angles, with lids open to dust and damp.
The team fitted distance sensors in each bin lid, reporting fill level over LoRaWAN on a schedule. They started with laser units but found the angled, dark, dusty contents threw off readings in the fullest bins — exactly when accuracy mattered most. Switching the dirtiest routes to ultrasonic sensors, whose wider beam and dust tolerance suited the messy contents, settled the data down. The principles behind a wireless, battery-powered monitoring layer like this are the same ones we cover in our cold chain monitoring guide, where sensors report continuously without permanent wiring.
Match the technology to what's actually inside the container — not to the headline range.
What to Check Before You Specify
- Ingress protection. Outdoor and in-lid sensors face rain, dust and washing, so demand IP67 for anything exposed.
- Measuring range. Confirm the sensor's minimum and maximum bracket your real distances, with margin at both ends.
- Target surface. Dusty, dark or scattering contents favour ultrasonic; clean, precise or deep targets favour ToF.
- Reporting mode. Threshold or scheduled reporting protects battery life; avoid continuous polling unless you truly need it.
- Beam clearance. Make sure the beam path is clear of the container wall or bay edge, so it reads the target and not the structure.
How the Data Reaches You
A distance-sensing deployment has three parts: the battery sensors, a gateway that receives their transmissions, and a network server such as The Things Stack or ChirpStack that decodes the data and forwards it to your dashboard. Each sensor is provisioned on that server before it goes live.
One gateway typically covers a wide spread of bins, tanks or bays, so per-device infrastructure cost stays low across a large rollout.
Frequently Asked Questions
Can one sensor handle both presence and fill level?
Often yes — both are distance measurements. A multifunctional sensor can be configured for presence over a bay or fill level inside a container; the difference is mounting and interpretation.
How accurate are they?
ToF laser gives precise point measurements on clean, defined targets. Ultrasonic reads a wider area and tolerates dust and scattering surfaces, trading pinpoint accuracy for reliability on messy contents.
How long do the batteries last?
Because the sensors transmit only on a schedule or threshold, battery units run for years. Actual life depends on reporting frequency — frequent reporting drains faster.
What if there's no LoRaWAN gateway on site?
Some sensors come in an NB-IoT cellular version that connects directly to the mobile network, removing the need for a local gateway — at the cost of higher power draw and a SIM data fee.
Specifying the Right Sensor
The technology choice comes down to the target, not the brochure. Clean, precise, deep or stepped surfaces reward a ToF laser; dusty, dark, angled or scattering contents reward ultrasonic. Get that match right and a single low-power sensor reports reliably for years across waste, tank-level and presence applications.
Not Sure Which Sensor Fits Your Target?
The shopioT engineering team helps operators pick between ultrasonic and ToF for their specific targets, confirm range and ingress ratings against the site, and ship sensors pre-provisioned for the network.