Ultrasonic sensors measure distance, presence, and level by emitting a burst of sound above the human hearing limit and timing the echo that returns from a target. Because they sense an acoustic reflection rather than light or a magnetic field, they detect almost any solid or liquid surface regardless of colour, transparency, or shine, which makes them a workhorse for object detection, web control, and non-contact level measurement across factory automation, water and wastewater, and material handling.
This guide treats the entire ultrasonic family: discrete proximity switches that signal an object crossing a set point, analogue ranging sensors that output distance, ultrasonic level transmitters on tanks and open channels, and transit-time and Doppler flow meters on pipes. The physics is shared, but the specifications, standards, and failure modes differ enough that selecting the wrong subtype is a common and expensive error.
This guide is aimed at industrial purchasing engineers and design engineers. It covers 6 chapters from the time-of-flight principle, sensor types, frequency and beam specifications, target and media effects, spec-sheet decoding, to selection decisions, with 7 selection FAQs and manufacturer comparisons. Parameters reference IEC 60947-5-2 for proximity switches, IEC 61131-9 (IO-Link), ISO 12242 and OIML R49 for ultrasonic liquid flow, and published manufacturer datasheets from Pepperl+Fuchs, Banner Engineering, SICK, Turck, and Siemens.
Chapter 1 / 06
What is an Ultrasonic Sensor
An ultrasonic sensor is a non-contact measurement device that emits sound waves above the upper limit of human hearing, conventionally 20 kHz, and interprets the echo reflected from a target to determine distance, presence, or fill level. Most industrial units operate between 40 kHz and 400 kHz. The active element is a piezoelectric transducer that works in both directions: a driving voltage makes the ceramic vibrate and radiate sound, and an incoming pressure wave deforms the same ceramic to generate a measurable charge. A single transducer therefore both transmits and receives, alternating between the two roles within each measurement cycle.
The governing physics is the time-of-flight principle. The control circuit fires a short tone burst, starts a timer, then switches the transducer to listen mode. When the burst strikes a surface and reflects back, the returning echo is detected and the timer stops. Distance equals half the elapsed time multiplied by the speed of sound, the factor of one half arising because the pulse travels out to the target and back again. At 20 degrees Celsius sound travels through air at roughly 343 metres per second (1,125 ft/s), so a 6 millisecond round trip corresponds to about 1 metre (3.3 ft). This direct dependence on sound velocity is both the strength and the central weakness of the technology, since velocity changes with air temperature.
Ultrasonic sensing matured from sonar and non-destructive testing into general automation through the 1980s. The piezoelectric transducer, the same family of device used in medical imaging and in the quartz that keeps a watch in time, became cheap and rugged enough for the factory floor, and by the 1990s ultrasonic proximity switches were standard catalogue items from Pepperl+Fuchs, SICK, Banner Engineering, Turck, and Siemens. The technology spread into level measurement because it needs no contact with sticky, corrosive, or shifting media, and into flow measurement because transit-time meters can be clamped onto a pipe without breaking the process. In parallel, low-cost 40 kHz transducer pairs put ultrasonic ranging into automotive parking aids, mobile robots, and hobbyist electronics.
The defining advantage over competing detection methods is target indifference. A photoelectric sensor depends on the optical reflectivity of the target and is defeated by clear glass, glossy metal, or matte black surfaces. An inductive sensor only sees metal. A capacitive sensor has limited range and reacts to humidity and buildup. An ultrasonic sensor responds to the mechanical impedance mismatch at any air-to-solid or air-to-liquid boundary, so it detects a clear PET bottle, a black rubber tyre, a sheet of aluminium, and the surface of a liquid with comparable reliability. The trade-offs, covered later, are sensitivity to sound-absorbing targets, a finite blind zone, and dependence on a stable air path.
Four engineering metrics dominate ultrasonic sensor quality across all subtypes: usable sensing range together with its blind zone, repeatability and resolution on the actual target, the temperature compensation method, and the beam geometry. A sensor that performs flawlessly on a flat steel plate in a laboratory can fail completely on foam, cloth, or an inclined surface in the field, so every specification must be read against the real target and the real environment rather than the headline number.
Chapter 2 / 06
Ultrasonic Sensor Types
Ultrasonic devices divide by what they output and where they are installed. The five mainstream families are discrete proximity switches, analogue ranging sensors, level transmitters, transit-time flow meters, and Doppler flow meters. They share the piezoelectric transducer and the time-of-flight or frequency-shift physics, but their specifications, governing standards, and acceptable applications diverge enough that they are quoted and selected as separate products. The table below compares the families on the parameters that decide a purchase.
Type
Output
Typical Range
Governing Standard
Typical Applications
Discrete proximity switch
PNP/NPN, IO-Link
20 mm to 8 m
IEC 60947-5-2
Object present, web break, stack count
Analogue ranging sensor
4-20 mA / 0-10 V, IO-Link
30 mm to 10 m
IEC 60947-5-2
Loop control, positioning, diameter
Level transmitter
4-20 mA + HART, bus
0.25 to 15 m
Manufacturer spec
Tank and bin level, open channel
Transit-time flow meter
4-20 mA, pulse, bus
Clamp-on or in-line
ISO 12242, OIML R49
Clean liquid, custody, HVAC water
Doppler flow meter
4-20 mA, pulse, bus
Clamp-on or in-line
Manufacturer spec
Slurry, wastewater, aerated fluid
Discrete proximity switches are the most common ultrasonic device on a machine. They monitor one or two adjustable set points and output a switching PNP or NPN signal when a target enters or leaves the window. The Banner QT50U series, for example, operates at 75 kHz with a 200 mm to 8 m range, 10 to 30 V DC supply, dual NPN or PNP outputs, and IP67 housing, and is built to IEC 60947-5-2 mechanical and EMC requirements. These switches replace photoelectric sensors wherever the target is clear, shiny, or dark, and they are routine in packaging, converting, and pallet handling.
Analogue ranging sensors output a continuous distance signal, normally 4-20 mA or 0-10 V scaled across a programmable measuring window, increasingly with an IO-Link interface that carries the same value digitally plus diagnostics. They are used for loop control, roll diameter and loop-height regulation, and robot or carriage positioning, where the machine needs the actual distance rather than a yes or no. Short-range models start near 30 mm with a few millimetre resolution, while long-range models reach 6 to 10 m at coarser resolution.
Level transmitters are top-down, downward-facing ranging sensors hardened for tank service, with 4-20 mA plus HART output, false-echo and tank mapping, and built-in temperature compensation. They excel on open, relatively calm liquid surfaces and on bulk solids in bins. Transit-time flow meters compute flow from the upstream and downstream travel-time difference and need a clean or lightly loaded liquid, while Doppler flow meters rely on particles or bubbles to reflect sound and therefore suit dirty or aerated fluids at lower accuracy. Both flow types come as clamp-on units that strap to the outside of a pipe or as wetted in-line spool pieces.
Chapter 3 / 06
Frequency, Beam, and the Time-of-Flight Chain
Three coupled design parameters set what an ultrasonic sensor can and cannot do: operating frequency, beam angle, and the timing electronics behind the time-of-flight measurement. They trade against one another, so there is no single best configuration. The table below summarises how operating frequency drives the rest of the specification.
Frequency Band
Typical Max Range
Beam Angle
Resolution
Typical Use
40 to 75 kHz
1 to 10 m
5 to 15 deg
Coarse (mm to cm)
Long-range level, parking aids
80 to 200 kHz
0.3 to 3 m
5 to 12 deg
Medium (mm)
General factory proximity
200 to 400 kHz
30 mm to 0.6 m
3 to 8 deg
Fine (sub-mm)
Short-range, small targets
Operating frequency is the primary lever. Lower frequencies, around 40 kHz, travel farther because air absorbs sound less at low frequency, which is why long-range level transmitters and automotive sensors cluster at 40 to 70 kHz. Higher frequencies, 200 to 400 kHz, attenuate quickly so the range collapses, but the shorter wavelength gives finer resolution, a smaller blind zone, and the ability to resolve small targets. As a rule, choose the lowest frequency that still covers the range you need, then accept the coarser resolution it implies.
Beam angle, also called the opening or radiation angle, defines the cone within which the radiated sound energy is concentrated, typically 5 to 15 degrees at the points where energy falls to half. For a transducer of a given diameter, higher frequency yields a narrower beam. A narrow beam is easier to aim at a small target and avoids picking up tank walls or nearby fixtures, but it is unforgiving of target tilt because a smooth surface reflects like a mirror and steers the echo away. A wider beam tolerates misalignment and irregular surfaces but invites unwanted side echoes from container walls, ladders, and structure. In a narrow vessel a wide beam is a frequent cause of false high-level readings.
The time-of-flight chain turns an echo into a number. After the transmit burst, the transducer rings down for a finite time during which it is deaf, and this ring-down is the physical origin of the blind zone, the close-in region where no measurement is possible. Typical blind zones run from about 20 to 80 mm on short-range proximity sensors to 0.25 to 0.6 m on long-range level units. Beyond the blind zone, the receiver amplifies the faint echo, applies a threshold to reject noise, and time-stamps the first valid return. Multiple bursts are usually averaged to suppress spurious echoes, which is why the measurement cycle, often tens to hundreds of milliseconds, is slower than an optical sensor and limits the speed of target that can be tracked.
Two further effects belong to this chain. First, the speed of sound used to convert time into distance is not constant: it is about 331 m/s at 0 degrees Celsius and about 343 m/s at 20 degrees, rising roughly 0.17 percent per degree, so the timing electronics must apply a temperature correction to stay accurate. Second, the target must lie within the beam and present a surface that reflects sound back toward the sensor; a surface tilted more than a few degrees, or a soft absorbing surface, weakens or eliminates the return regardless of how good the electronics are.
Chapter 4 / 06
Targets, Media, and Environmental Effects
An ultrasonic sensor measures a property of the whole acoustic path, not just the target, so the target surface, the air column, and the environment all enter the result. Ignoring these factors is the single largest cause of field failure, because a sensor verified on a flat hard plate behaves very differently on foam, cloth, or an angled surface. The table below summarises how common targets and conditions affect performance.
Target / Condition
Effect on Echo
Mitigation
Flat hard surface (metal, glass, liquid)
Strong, clean echo
Ideal; full rated range
Foam, fleece, loose powder
Absorbs sound, weak echo
Reduce range or use radar/contact
Tilted surface (over 3 to 5 deg)
Echo steered away
Mount square; use wider beam
Steam, vapour, heavy dust
Scatters and absorbs pulse
Purge air; switch to radar
Temperature gradient in air
Bends beam, shifts reading
Compensate; shorten path
Strong air turbulence / wind
Disperses pulse
Shield path; average more cycles
Target surface is decisive. A flat, hard, sound-reflecting surface that faces the sensor returns a strong echo and supports the full rated range. A soft, porous, sound-absorbing target such as foam, fleece, cotton wool, or loose powder swallows the pulse and returns little, so the usable range shrinks dramatically and may collapse entirely. Surface angle matters as much as material: a smooth surface reflects sound specularly like a mirror, so a tilt beyond roughly 3 to 5 degrees can steer the echo clear of the receiver and produce a missing or false reading. Mounting the sensor square to the target, or accepting a wider beam, is the standard remedy.
Air temperature is the dominant environmental error because sound velocity changes about 0.17 percent per degree Celsius. Pepperl+Fuchs quantifies the impact: at a 1 m distance an uncompensated sensor reads roughly minus 8.5 cm at plus 70 degrees and plus 7.65 cm at minus 25 degrees relative to a 20 degree calibration. Built-in temperature compensation, using a probe at the transducer face, removes most of this, but a steep gradient along the beam path, for example hot vapour rising off a tank, cannot be modelled from a single point and leaves residual error. Practical industrial accuracy is often quoted as about 1 to 3 percent of the measured distance once temperature, alignment, and surface effects are included.
Humidity has only a small influence at room temperature and below, becoming noticeable only at high temperature where the speed of sound rises slightly with moisture content, so it is usually a second-order concern. Steam, vapour, heavy dust, and foam are far more damaging: they scatter and absorb the pulse and can produce loss of echo. Turbulence and strong air movement disperse the beam and add noise. Where steam, thick foam, vacuum, or strong gradients are unavoidable, the correct substitute is non-contact radar or guided-wave radar, because microwaves are unaffected by the gas atmosphere; ultrasonic remains the economical choice for open, calm liquid surfaces and clean air paths.
Two installation details prevent the most common faults. First, always keep the closest possible target beyond the blind zone, since an object inside the dead band reads as no target or as a stuck value. Second, in narrow vessels and near walls, ladders, agitators, and weld seams, account for the beam cone and use false-echo mapping where the transmitter supports it, otherwise a fixed obstruction inside the cone is reported as a permanent false level.
Chapter 5 / 06
Key Specification Parameters
Reading an ultrasonic datasheet means cutting through marketing range claims to the parameters that actually govern the application. The same sensor may list 15 or more lines, but seven drive the decision: sensing range and blind zone, operating frequency, beam angle, repeatability and resolution, response time, temperature range and compensation, and output and protocol. Each is explained below.
Sensing range and blind zone are a pair and must always be read together. The headline maximum range is usually quoted on an ideal flat target; the realistic range on your specific surface is shorter. The blind zone, the close-in dead band caused by transducer ring-down, sets the minimum distance at which the sensor works, typically 20 to 80 mm for proximity sensors and 0.25 to 0.6 m for level transmitters. Mount the sensor so the nearest expected target sits beyond the blind zone and the farthest sits comfortably inside the verified range, not at its absolute limit.
Operating frequency, from roughly 40 kHz to 400 kHz, fixes the range-versus-resolution trade. Lower frequency means longer range and a larger blind zone; higher frequency means shorter range, finer resolution, and a smaller blind zone. Beam angle sets how forgiving the sensor is of alignment and how prone it is to side echoes; a narrow cone targets precisely but demands a square, well-aimed surface, while a wide cone tolerates tilt but risks false returns from walls and fixtures.
Repeatability is the spread of repeated readings of the same fixed target under identical conditions and is the most honest indicator of real performance, often 0.1 to 0.5 percent of the measured distance for quality industrial sensors. Resolution is the smallest distance change the output can express, which for analogue and IO-Link models can be sub-millimetre at short range. Distinguish these from absolute accuracy, which after target, alignment, and temperature effects is realistically 1 to 3 percent in many industrial installations.
Response time, the measurement or update cycle, runs from a few milliseconds at short range to tens or hundreds of milliseconds for long-range, multi-burst averaging. It directly limits how fast a target can move and still be detected, so a fast conveyor or a high-speed counting task needs a short-range, high-frequency sensor with a short cycle. Temperature appears twice: the ambient operating window, commonly minus 25 to plus 70 degrees Celsius and as wide as minus 40 to plus 85 degrees on industrial models, and the compensation method, since without active correction the speed-of-sound drift dominates the error budget.
Output and protocol close the specification. The main options are:
Discrete PNP / NPN: One or two switching set points with selectable normally-open or normally-closed logic, for object present, absent, or in-window detection.
Analogue 4-20 mA / 0-10 V: Distance scaled across a programmable window; 4-20 mA tolerates long cable runs, 0-10 V is convenient for PLC voltage inputs.
IO-Link (IEC 61131-9): Digital value plus diagnostics, remote teach-in, and parameter storage over the same three-wire M12 cable, now standard on many new models.
4-20 mA + HART: The norm for level transmitters, adding remote configuration, echo profiles, and tank mapping over the current loop.
Modbus RTU / fieldbus / pulse: Used by level and flow transmitters for bus integration and totalisation.
Round out the sheet with the environmental and approval lines: IP rating, normally IP65 to IP68 with NEMA 4X or washdown variants for food and outdoor duty, EMC and shock-vibration to IEC 60947-5-2 for proximity switches, supply voltage, short-circuit and reverse-polarity protection, connector type such as M8 or M12, and where relevant hazardous-area approvals. For flow meters add the accuracy class referenced to ISO 12242 or OIML R49 and the upstream and downstream straight-pipe requirements.
Chapter 6 / 06
Selection Decision Factors
To convert the preceding chapters into a specific model, follow the decision sequence below. Most selection mistakes come not from one wrong line on the datasheet but from skipping the target and environment check, which is where ultrasonic sensors fail most often. These eight steps double as an RFQ template.
Define the task and pick the subtype: Object present or absent points to a discrete proximity switch; continuous distance points to an analogue ranging sensor; tank or bin contents points to a level transmitter; pipe flow points to a transit-time meter for clean liquid or a Doppler meter for dirty or aerated liquid.
Set range and verify the blind zone: Establish the minimum and maximum target distance, confirm the minimum lies beyond the blind zone, and leave headroom so the maximum is inside the verified range rather than at its limit.
Check the target surface: Hard and flat is ideal; foam, fleece, powder, and surfaces tilted beyond 3 to 5 degrees absorb or steer the echo. If the target is absorptive or steeply angled, reduce range, widen the beam, or move to radar or a contact method.
Assess the air path and environment: Identify steam, vapour, heavy dust, foam, vacuum, temperature gradients, and turbulence. If these are present and unavoidable, choose radar instead. Otherwise specify a model with active temperature compensation.
Choose frequency and beam angle: Take the lowest frequency that covers the range, then accept the resolution it gives. Pick a narrow beam for small targets and clean aiming, a wider beam to tolerate tilt, while watching for side echoes in narrow vessels.
Specify output and protocol: Discrete PNP or NPN for switching, 4-20 mA or 0-10 V for analogue distance, IO-Link for digital plus diagnostics, 4-20 mA with HART for level, and Modbus or fieldbus for bus integration and totalisation.
Pin down mechanical and environmental ratings: Connector (M8 or M12), housing material, IP and NEMA rating for washdown or outdoor duty, supply voltage, short-circuit and reverse-polarity protection, and EMC, shock, and vibration to IEC 60947-5-2.
Add approvals and total cost of ownership: Hazardous-area, sanitary, and metrology approvals where required, plus the lifecycle cost of mounting, teach-in, and any recalibration. A sensor that is cheap but mis-specified for the target causes nuisance trips and lost production that dwarf the price difference.
One last dimension is manufacturer serviceability: local stock of the exact connector and mounting variant, application support for awkward targets, IO-Link device description (IODD) availability, and firmware updates. These matter little at purchase but determine response time after years of line operation. Pepperl+Fuchs, Banner Engineering, SICK, Turck, and Siemens maintain broad ultrasonic catalogues with documented IODD files and regional support, which makes them dependable choices for production machinery, while ultrasonic level and flow transmitters are also offered by Endress+Hauser, Siemens, and KROHNE for process service.
FAQ
How does an ultrasonic sensor measure distance?
An ultrasonic sensor uses the time-of-flight principle. A piezoelectric transducer emits a short burst of sound above human hearing, typically 40 to 400 kHz, then switches to listen mode. When the burst strikes a target and reflects back, the transducer converts the returning echo into an electrical signal. The sensor measures the elapsed time, then computes distance as half the time of flight multiplied by the speed of sound, because the pulse travels to the target and back. At 20 degrees Celsius the speed of sound in air is about 343 metres per second, so a 6 millisecond round trip corresponds to roughly 1 metre distance.
What is the blind zone of an ultrasonic sensor?
The blind zone, also called the dead band or blocking distance, is the region directly in front of the transducer face where the sensor cannot measure reliably. It exists because the piezoelectric ceramic continues to ring after the transmit burst, and that residual vibration masks any echo arriving too soon. Typical blind zones range from about 20 to 80 millimetres for short-range proximity sensors and from 0.25 to 0.6 metres for long-range level transmitters. Higher frequency, shorter-range sensors have smaller blind zones. The target must always be placed beyond the blind zone, so the minimum mounting offset is a hard selection constraint.
How does temperature affect ultrasonic sensor accuracy?
Temperature is the largest single error source because the speed of sound rises about 0.17 percent per degree Celsius, from roughly 331 metres per second at 0 degrees to about 343 metres per second at 20 degrees. Without compensation, a 20 degree shift at a 1 metre distance produces several centimetres of error: Pepperl+Fuchs cites about minus 8.5 centimetres at plus 70 degrees and plus 7.65 centimetres at minus 25 degrees relative to a 20 degree reference. Quality sensors include an integral temperature probe that corrects the sound velocity in real time. Steep thermal gradients in the air column still cause residual error because a single point measurement cannot model the gradient.
When should I choose ultrasonic instead of an inductive, capacitive, or photoelectric sensor?
Ultrasonic sensing detects almost any solid or liquid surface regardless of colour, transparency, or reflectivity, which is its key advantage over photoelectric sensors that struggle with clear glass, black rubber, and shiny metal. Unlike inductive sensors it works on non-metals, and unlike capacitive sensors it tolerates dust and offers metres of range. Choose ultrasonic for clear bottle detection, web break detection, stacked sheet counting, bin and tank level, and ranging through dust or steam where optics fail. Avoid it for sound-absorbing targets such as foam, fleece, and loose powder, for very fast moving objects, and where the air path carries heavy turbulence or strong temperature layers.
What is the difference between transit-time and Doppler ultrasonic flow meters?
Transit-time meters send pulses diagonally upstream and downstream and compute flow from the difference in travel time, since the downstream pulse arrives faster. They need a clean or only lightly loaded liquid and deliver accuracy around plus or minus 0.5 to 2 percent of reading, which is why they dominate custody and process service under ISO 12242 and OIML R49. Doppler meters require suspended particles or bubbles to reflect sound, then derive velocity from the frequency shift of the returning echo. Doppler suits dirty or aerated fluids such as slurry and wastewater but is less accurate, typically plus or minus 2 to 5 percent. Both are available as clamp-on or wetted in-line designs.
Why does my ultrasonic level reading fail with foam, steam, or vapour?
Foam, steam, floating dust, and heavy surface turbulence scatter and absorb the ultrasonic pulse, so the returning echo becomes too weak to detect, producing loss of echo or erratic readings. Vapour, vacuum, and temperature layers also change the local speed of sound and bend the beam, shifting the apparent distance. Thick foam is the worst case because it both absorbs sound and presents no defined surface. For foaming, vapour-laden, or vacuum service, a non-contact radar (FMCW or pulse) or a guided-wave radar is the correct substitute, because microwaves are unaffected by the gas atmosphere. Ultrasonic remains the economical choice for open, relatively calm liquid surfaces.
Which output signals and connections do industrial ultrasonic sensors use?
Discrete proximity sensors output a switching PNP or NPN transistor signal, often with one or two independent set points and selectable normally-open or normally-closed logic, on an M8 or M12 connector. Analogue ranging sensors output 4-20 mA or 0-10 V proportional to distance, plus an adjustable window. Most modern industrial models add IO-Link per IEC 61131-9 over the same three-wire M12 cable, which carries the analogue value digitally plus diagnostics and remote teach-in. Level transmitters typically provide 4-20 mA with HART, and may add Modbus RTU or a bus interface. Housing protection is usually IP65 to IP68, with NEMA 4X and washdown variants for food and outdoor duty.