[ CHAPTER 02 · 15 MIN ]
Presence sensors — is the part there?
Choosing between inductive, capacitive, photoelectric and ultrasonic detection, with the sensing-distance derating and mounting rules that decide whether it works in year two.
Inductive · capacitive · photoelectric · ultrasonic · limit switch
0% read · 0 of 9 sections
Every presence sensor answers one question badly in some way
Detecting a part sounds trivial until you meet the part. Aluminium reads at roughly a third the distance of steel on an inductive sensor. A clear PET bottle is invisible to a diffuse photoelectric. A shiny machined face throws a retroreflective beam straight back and makes the sensor think it is looking at its own reflector. A dusty room defeats optics; a wet room defeats capacitive.
So the choice is never "which sensor is best" but "which failure mode can this machine live with". The four families below cover almost every industrial detection job, and each one fails in a way you can predict before you buy it.
| Family | Detects | Typical range | Fails on |
|---|---|---|---|
| Inductive | Metal only | 1–40 mm (flush 1–15 mm typical) | Non-metals, non-ferrous derating, metal chips sticking to the face |
| Capacitive | Almost anything, including through a wall | 2–25 mm | Humidity, condensation, product build-up, drift |
| Photoelectric — through-beam | Anything opaque | Up to 60 m | Alignment, two housings to cable |
| Photoelectric — retroreflective | Anything opaque, with a reflector | 0.1–15 m | Shiny targets reflecting like the reflector (needs polarised) |
| Photoelectric — diffuse | Anything with a surface to bounce off | 10 mm – 2 m | Dark or clear targets, varying background |
| Ultrasonic | Anything solid or liquid, colour-blind | 20 mm – 8 m | Foam, temperature gradients, soft or angled surfaces |
| Mechanical limit switch | Physical contact | Contact | Wear, vibration, dirt in the actuator |
| Magnetic / reed | A magnet (typically a cylinder piston) | Through the cylinder wall | Stray magnetic fields, aluminium-bodied cylinders only |
Inductive: the workhorse, and its two catches
An inductive proximity sensor runs an LC oscillator at its face. Metal entering the field induces eddy currents, damping the oscillator, and the sensor switches. No contact, no moving parts, no light path to keep clean — which is why it is on nearly every machine built.
The first catch is the reduction factor. The rated sensing distance Sn on the datasheet is for mild steel (Fe360). Other metals read less: stainless roughly 0.7×, brass roughly 0.5×, aluminium roughly 0.4×, copper roughly 0.3×. Buy for the metal you have, not the number on the box. Factor-1 sensors exist and read all metals at full range, and they cost more for exactly that reason.
The second catch is flush versus non-flush. A flush (shielded) sensor can be buried level with a metal bracket; a non-flush (unshielded) one senses sideways too and must have a clear zone around it — typically 3× the diameter of free space, and its own diameter of clearance from a facing metal surface. Mount a non-flush sensor flush in a steel block and it triggers permanently on the block.
Photoelectric: pick the mode before you pick the brand
Through-beam is the strongest mode by a wide margin: emitter one side, receiver the other, the longest range and the best tolerance of dirty air. It costs two housings and two cable runs, and it needs the target to break the line.
Retroreflective puts emitter and receiver in one housing and a prismatic reflector opposite. Half the wiring, still long range. The trap is a shiny target: a polished can lid can return the beam like the reflector does, so the sensor never sees it. Polarised retroreflective models solve this — the prism rotates the light 90°, and the receiver only accepts rotated light, so a plain shiny surface no longer counts as a reflector.
Diffuse (proximity mode) has no reflector at all and reads the light bounced back off the target itself. Convenient, and the most temperamental: a black rubber part returns a fraction of the light a white carton does, so range collapses with target colour. Background suppression (BGS) models fix the other half of the problem by triangulating distance rather than intensity, which lets them ignore a conveyor bed 20 mm behind the part.
- Light-on vs dark-on: light-on switches when the receiver sees light, dark-on when the beam is broken. Most sensors have a jumper or teach button. Choose so that a cut cable or dead emitter fails to the safe state for your process.
- Excess gain is the margin above the minimum detectable light. Aim for 3× or better in a clean room and 10× in a dusty one — that ratio, not range, decides how long the sensor runs before someone has to wipe it.
- For clear objects (PET bottles, film), use a dedicated clear-object sensor or a through-beam with a small aperture. A standard diffuse will not see them.
Capacitive and ultrasonic: when nothing else can see it
A capacitive sensor detects a change in the dielectric in front of its face, so it will pick up plastic, wood, powder, water — and, importantly, product inside a non-metallic tank wall. That is its unique job: point-level detection of pellets or liquid through a 3–5 mm plastic wall, without a hole in the vessel.
It is also the least stable of the four. Humidity, condensation and product film all shift the trigger point, which is why capacitive sensors carry a sensitivity potentiometer and why people spend their lives adjusting them. If build-up is likely, prefer another technology or budget for a wipe-down schedule.
Ultrasonic sensors time an echo, so they are colour-blind and see clear objects perfectly — the two cases that break optics. Their weaknesses are foam (absorbs the pulse), strong temperature gradients (bend the speed of sound) and angled surfaces (deflect the echo away). Keep the target face within about ±3° of perpendicular and stay outside the blind zone right in front of the transducer.
NO, NC, and the wiring that decides your safety story
Normally open closes on detection; normally closed opens on detection. For plain sequence detection the choice is arbitrary. For anything protective or interlocking, use normally closed, because a cut cable and a lost sensor then look identical to a detected fault — the machine stops.
Beyond that, three-wire DC sensors follow the same PNP/NPN rules as chapter 1, and two-wire DC sensors deserve a mention of their own: they always pass a small leakage current (typically 0.5–2 mA) even when off. On a high-impedance input that leakage can hold the input at a level the card reads as on. A bleeder resistor across the input fixes it, but a three-wire sensor avoids the argument entirely.
Mounting: where sensors are really lost
Most presence-sensor callouts are mechanical, not electrical. A bracket flexing 0.5 mm under load, a sensor slowly walking out of a nut because nobody used a lock washer, weld spatter cooking an optical face, a chip pile bridging an inductive face — these are the everyday causes.
Design for them: stainless brackets stiff enough that a person leaning on the guard does not move them, sensors set back out of the impact line, air purge or a recessed pocket in a spatter zone, and mutual interference spacing between sensors of the same type (typically 2× the diameter for flush inductives, more for ultrasonics, which will happily hear each other).
[ WHEN IT GOES WRONG ]
The faults this chapter's hardware actually produces, with the cause and the fix.
Inductive sensor works on the test steel bar but not on the real aluminium part
Cause · Reduction factor — aluminium reads at roughly 0.4× the rated distance.
Fix · Move the sensor to about 70 % of the derated distance, or fit a factor-1 sensor rated for all metals.
Retroreflective sensor never detects a shiny can lid
Cause · The target reflects the beam as well as the reflector does.
Fix · Fit a polarised retroreflective model, or angle the sensor 10–15° so specular reflection misses the receiver.
Diffuse sensor detects white boxes, ignores black ones
Cause · Diffuse mode reads returned intensity, and a matt black surface returns a small fraction of the light.
Fix · Switch to background-suppression (triangulation) or through-beam. Turning the sensitivity up usually makes it start seeing the conveyor instead.
Capacitive level sensor triggers every morning, clears by mid-shift
Cause · Overnight condensation on the face or the tank wall.
Fix · Reduce sensitivity to sit above the condensation threshold, add a wipe or shroud, or move to a vibrating fork level switch that is immune to film.
Two ultrasonic sensors on the same conveyor give random readings
Cause · Cross-talk — each hears the other transducer.
Fix · Use synchronisation or multiplex mode (most vendors provide a sync wire), or space and angle them so the beams do not overlap.
Two-wire DC sensor leaves the input permanently on
Cause · Residual leakage current above the card off-state threshold.
Fix · Fit a bleeder resistor across the input to divert the leakage, or replace with a three-wire sensor.
Sensor drifts out over weeks and eventually misses parts
Cause · Bracket movement or the sensor backing out of the mount.
Fix · Two nuts with thread-lock or a locknut plus washer, a stiffer bracket, and a marked witness line so drift is visible during a walk-round.
[ WHICH ONE DO I BUY? ]
Real selection questions, answered the way a colleague would answer them.
Detecting a metal part in a machining cell full of chips and coolant?
Inductive, flush-mounted, in a recessed pocket, IP67 minimum and preferably a stainless-face model. Optics will not survive the coolant mist and capacitive will read the coolant film.
Detecting cartons on a 1.5 m wide conveyor?
Through-beam if you can cable both sides — it is the most tolerant. Otherwise retroreflective with a polarised head. Diffuse only if the carton colour is controlled.
Confirming a pneumatic cylinder is home?
A magnetic (reed or, better, electronic Hall) switch in the cylinder T-slot. It reads the piston magnet through the aluminium barrel, needs no extra bracket, and cannot be knocked out of alignment.
Point-level detection of plastic pellets in a hopper?
Capacitive through the wall if the wall is non-metallic and thin, otherwise a vibrating fork or rotating paddle switch inside the hopper. Ultrasonic from the top is a good continuous alternative, but not through foam.
[ CHECK YOURSELF ]
Six questions. Every answer explains itself, pass or fail.
Module quiz
6 questions. Answer them all; each answer explains itself whether you get it right or wrong.
Q01
An M18 inductive sensor is rated Sn = 5 mm. The target is aluminium. What working gap is sensible?
Q02
Which photoelectric mode is the right first choice for a dusty environment over 5 m?
Q03
Why is normally closed the usual choice for an interlock sensor?
Q04
A non-flush (unshielded) inductive sensor is screwed level into a steel bracket. What happens?
Q05
Which target defeats a standard diffuse photoelectric most reliably?
Q06
Two ultrasonic sensors 300 mm apart give erratic readings. Most likely cause?
Score: 0 / 6