Back

Ultrasonic or Optical Sensor - Which Detects Reliably?

Clear bottles, shiny sheet metal and airborne dust push many sensors to their limit. This guide compares ultrasonic and optical sensors by sensing principle, shows their strengths on difficult surfaces and gives clear selection criteria for the shop floor.

5 minStand: 2026-07Geprüft: Technical editors
View sensors
Sound
Ultrasonic ignores colour
Light
Optical fast and precise
0.2-8 m
typical ultrasonic range
< 1 ms
optical response time
Inhalt
  1. Sensing principle
  2. Difficult surfaces
  3. Environment and limits
  4. Frequently asked questions

How do the two sensing principles differ?

An optical sensor emits light (red or infrared) and evaluates the reflected or interrupted signal. An ultrasonic sensor emits sound pulses in the range of roughly 65 to 400 kHz and measures the time of flight of the echo. Because sound reflects off almost any solid or liquid surface, the ultrasonic principle is largely independent of colour, transparency and gloss.

Optical sensors are faster and resolve finer detail, but they react to the optical properties of the object. Ultrasonic works more slowly, yet stays robust against dirt, mist and changing light. The choice therefore depends less on the object itself than on its surface and the surrounding conditions.

Rule of thumb: if speed and small-object detection matter, choose optical. If a difficult or changing surface matters, choose ultrasonic.
Sensors & Automation

Overview of sensor types and how to pick the right one for your application.

Read the guide

Transparent, shiny or dusty - which sensor wins?

This is where the two principles really part ways. Transparent PET bottles let light pass straight through, shiny metal deflects the beam unpredictably, and dust clouds any optical path. Ultrasonic is largely immune to all three effects.

Dedicated optical retro-reflective sensors with clear-object detection exist. Where they reach their limit, or dust is added to the mix, ultrasonic is the safe choice.
  • Transparent containers, glass, film: ultrasonic or optical clear-object sensors.
  • High-gloss, chrome or mirror surfaces: ultrasonic avoids false switching from direct reflections.
  • Dusty, misty or oily environments: ultrasonic keeps working while optics foul the lens.
  • Very small or fast-moving parts: optical sensor for fine resolution and short response time.

What limits does the environment impose?

Ultrasonic has physical limits: the speed of sound depends on air temperature (about 0.17 percent per kelvin), and good devices compensate for this internally. Sound-absorbing materials such as foam, wadding or loose fleece dampen the echo. Strong airflow or a vacuum stops sound transmission entirely.

Optical sensors are disturbed by ambient light, mirrored backgrounds and dirty lenses. In return they achieve shorter response times (under 1 ms) and millimetre-accurate switching points. For ranges over several metres with high point accuracy, photoelectric or laser distance sensors are superior.

Mind the protection rating: in wet areas and high-pressure washdown at least IP67 is advisable, and ultrasonic versions up to IP69K are available.
  • Check temperature compensation on the ultrasonic sensor if the ambient temperature varies.
  • Foam and loose textiles absorb sound - test optical here.
  • Under ambient light (sun, flashes) choose optical sensors with modulation or background suppression.
  • Respect the ultrasonic blind zone: no measurement in the near range (typically < 6 cm).

Frequently asked questions

Can an ultrasonic sensor really detect glass and transparent bottles?

Yes. Sound reflects off the solid or liquid surface regardless of optical transparency. That makes ultrasonic usually the safest solution for glass, PET and clear film.

Why do optical sensors fail on shiny metal?

Mirrored surfaces reflect the beam in a directed way instead of scattering it diffusely, which causes false switching. Ultrasonic is insensitive to this gloss effect.

Is an optical sensor faster than ultrasonic?

Usually yes. Optical sensors switch in under 1 ms, while ultrasonic needs time for the send and echo travel. For fast counting and positioning, optical is therefore ahead.

What is the blind zone of an ultrasonic sensor?

The near range directly in front of the sensor where the transducer is still ringing and cannot evaluate an echo. Depending on the type it is a few centimetres and must be allowed for during installation.

Not sure which principle fits?

We supply ultrasonic and optical sensors for transparent, shiny and dusty objects - including sizing for your environment.

Rugged housings

Protection ratings up to IP69K for wet and dusty areas.

For hard targets

Proven on glass, chrome, film and bulk material.

Correctly sized

Range and switching point matched to the application.

Expert advice

Specialists help you choose the principle.

More guides