Proximity Sensor Types: Inductive, Capacitive, Photoelectric and Ultrasonic Compared
Proximity sensors detect whether an object is present without touching it. On a modern production line they confirm that parts have arrived, cylinders have moved, bottles are in place and guards are closed. They are inexpensive, fast and wear-free, which is why a single machine can use dozens of them.

Inductive proximity sensors
An inductive sensor contains a coil driven by an oscillator, which creates a high-frequency electromagnetic field at the sensing face. When a metal object enters the field, eddy currents in the metal draw energy from the oscillator. The electronics detect the change and switch the output.
Inductive sensors detect only metals, but they ignore dirt, oil, water and most non-metallic materials, which makes them extremely reliable in machine tools, presses and welding cells. Their sensing distance is short, from under 1 mm to a few tens of millimetres, depending on size.
Sensing distance and correction factors
The rated sensing distance (Sn) is measured with a standard square mild steel target 1 mm thick. Other metals reduce the distance. Typical correction factors are:
| Target material | Typical correction factor |
|---|---|
| Mild steel | 1.0 |
| Stainless steel | About 0.7 |
| Brass | About 0.5 |
| Aluminium | About 0.4 |
| Copper | About 0.3 |
So a sensor rated 8 mm on steel detects aluminium at roughly 3 mm. "Factor 1" sensors are available that detect all metals at the same distance. Design for an operating distance of about 80 % of the corrected value to allow for tolerances and temperature.
Flush and non-flush mounting
Flush (shielded) sensors can be mounted level with the surrounding metal and have a shorter range. Non-flush (unshielded) sensors protrude from the mounting and offer a longer range but need clear space around the face.
Capacitive proximity sensors
A capacitive sensor detects changes in capacitance in front of its face. Almost any material with a dielectric constant higher than air causes a change: metal, plastic, wood, glass, liquids, powders and granules. Capacitive sensors are used to detect the level of grain in a hopper, liquid through a plastic tank wall, or cardboard boxes on a conveyor. Most have a sensitivity adjustment so they can ignore a container wall and detect the contents. They are more sensitive than inductive sensors to humidity, build-up and temperature.
Photoelectric sensors
Photoelectric sensors use a light beam, usually red, infrared or laser, and detect when the beam is interrupted or reflected. They offer much longer ranges than inductive or capacitive sensors.
- Through-beam: separate emitter and receiver facing each other. Longest range and most reliable, but two devices to mount and wire.
- Retro-reflective: emitter and receiver in one housing, with a reflector opposite. Polarised versions avoid false triggering from shiny objects.
- Diffuse: the object itself reflects the light back. Easy to install, but range depends on the object's colour and surface.
- Background suppression: a diffuse sensor that only detects objects up to a set distance and ignores anything behind, regardless of colour.
Transparent objects, very dark objects and dirty optics are the usual challenges. Special sensors exist for clear bottles and films.
Ultrasonic sensors
Ultrasonic sensors send a sound pulse and measure the echo time. They detect objects regardless of colour or transparency, including glass, liquids and foils, and many also output a continuous distance value. They are used for level, roll diameter, presence of transparent objects and distance measurement. Soft, sound-absorbing materials, steep angles and strong air movement reduce reliability.
Magnetic sensors
Reed switches and Hall effect or magnetoresistive sensors detect a magnet rather than the object itself. They are standard for detecting piston position through the wall of pneumatic cylinders, and for door and guard position. Hall effect sensors also measure speed and position in motors and gear teeth.
Comparison table
| Type | Detects | Typical range | Strengths | Weak points |
|---|---|---|---|---|
| Inductive | Metals | Up to about 40 mm (standard) | Robust, immune to dirt | Short range, metal only |
| Capacitive | Almost anything | Up to about 25 mm | Detects liquids and powders, through walls | Sensitive to build-up and humidity |
| Photoelectric | Most objects | Centimetres to tens of metres | Long range, fast | Dirt, transparent or dark objects |
| Ultrasonic | Most objects, incl. transparent | Centimetres to several metres | Colour independent, distance output | Soft materials, air movement |
| Magnetic | Magnets | Depends on magnet | Works through non-magnetic walls | Needs a magnet on the target |
PNP vs NPN outputs
Most DC proximity sensors have a transistor output. A PNP (sourcing) sensor switches the positive supply to the load: when active, the output goes to +24 V. An NPN (sinking) sensor switches the load to 0 V. The PLC input must match: PNP sensors connect to sinking inputs, NPN sensors to sourcing inputs. PNP is the norm in Europe and much of the world; NPN is still common in Asian machine builds. Outputs are also specified as normally open (NO, active when an object is present) or normally closed (NC). Many sensors now offer IO-Link, which adds configuration and diagnostics over the same 3-wire cable. The relevant product standard for proximity switches is IEC 60947-5-2.
How to choose a proximity sensor
- What is the target material, and how far away is it?
- How fast does it move, and how often must the sensor switch?
- Is the environment dirty, wet, hot, or subject to welding fields or washdown?
- What mounting space is available, and can the sensor be flush-mounted?
- What output does the controller need: PNP or NPN, NO or NC, analog or IO-Link?
Frequently asked questions
What is the difference between an inductive and a capacitive proximity sensor?
Inductive sensors detect only metal using an electromagnetic field. Capacitive sensors detect almost any material by measuring changes in capacitance, including plastics, liquids and powders.
Can an inductive sensor detect aluminium?
Yes, but at a reduced distance, typically around 40 % of the rated steel distance, unless the sensor is a "factor 1" type.
How do I know if my sensor is PNP or NPN?
Check the label or datasheet. With power applied and the sensor active, a PNP output measures about +24 V to 0 V, while an NPN output measures about 0 V relative to the negative supply.
Related guides: level sensor types, how load cells work, 4-20 mA current loop and our overview of types of sensors used in industrial automation.
Find proximity sensor manufacturers in the Sensor Times directory.
Related reading: Hall effect sensors, Rotary encoders, Ultrasonic sensors.