MachineryFix

Equipment Explained · Instruments & Process Control

How do proximity and photoelectric sensors work, and why do they stop detecting?

Non-contact switches that tell a PLC whether an object is present: inductive types sense metal, capacitive types sense most materials, photoelectric types use a light beam.

01 / Definition

What a Proximity and Photoelectric Sensors is

Proximity sensors are the eyes of an automated machine. An inductive sensor drives an oscillating magnetic field from its face; when a metal target enters it, eddy currents load the oscillator and the sensor switches. It only sees metal, and its rated sensing distance applies to mild steel: stainless steel, aluminium and brass are detected at noticeably shorter distances. Capacitive sensors respond to almost any material, so they are used for plastic, powder and liquid level. Photoelectric sensors use a light beam, through-beam, retro-reflective or diffuse, to detect objects at longer range.

When a sensor 'stops working', the sensor itself is often fine. The target may be just beyond the sensing distance after a bracket moved, metal chips may be holding an inductive sensor on, a lens may be dirty, or a replacement may be NPN where the PLC expects PNP. The sensor's own LED is the quickest first check: if it lights but the PLC input does not, the fault is in the wiring or the input.

Also called

inductive proximity sensorcapacitive sensorphotoelectric sensorPNP NPN sensor

02 / Anatomy

The parts that matter

The components a technician reaches for when this machine stops working.

Sensing face

Coil and oscillator (inductive), electrode (capacitive), or emitter and receiver (photoelectric).

Output stage

PNP or NPN transistor, normally open or normally closed; must match the PLC input.

Indicator LED

Shows when the sensor detects, the first diagnostic.

Cable or M12 connector

The most damaged part on a moving machine.

Reflector or target

For retro-reflective sensors and position detection.

03 / Applications

Where it is used

Machine position detection, counting on conveyors, cylinder end positions, level detection in hoppers, guarding and packaging lines.

04 / Failure modes

How it fails

What actually goes wrong on Indian shop floors, and what each fault looks like to the operator.

FM_01

Target out of range

A moved bracket or a different target material puts the target beyond the sensing distance.

FM_02

Chips and buildup

Metal swarf holds an inductive sensor permanently on; dust blinds photoelectric lenses.

FM_03

Wrong output type

An NPN sensor on a PNP input, or NO in place of NC, after replacement.

FM_04

Cable damage

Flexing, cutting or crushed cables on moving parts cause intermittent signals.

FM_05

Sensor damage

Impact from the target or excessive heat.

05 / Onsite

What our technician checks

A methodical path to root cause, not a scattergun of part swaps.

  1. 01Watch the sensor LED while moving the target into and out of range
  2. 02Measure the 24 V supply and the output voltage at the sensor
  3. 03Check the target distance and material against the sensor's rating
  4. 04Confirm PNP or NPN and NO or NC match the PLC input
  5. 05Clean the sensing face or lens and remove chips
  6. 06Check the cable and connector along its route

06 / Get it fixed

Related services

The MachineryFix services that cover this equipment.

07 / Questions

Frequently asked questions

What is the difference between PNP and NPN sensors?+

A PNP sensor switches the positive supply to the PLC input (sourcing); an NPN sensor switches it to 0 V (sinking). The input card must match, or the signal will not be seen.

Why doesn't my inductive sensor detect aluminium at the rated distance?+

Rated distance is for mild steel. Non-ferrous metals and stainless steel are detected at shorter distances.

The sensor LED is on but the PLC input is off. Why?+

The fault is between the sensor and the PLC: wiring, the connector, the input card, or a PNP/NPN mismatch.

Which photoelectric type is most reliable?+

Through-beam sensors, with separate emitter and receiver, are least affected by target colour and surface; diffuse types are simplest to install but most sensitive to target colour and dirt.

Written & reviewed by MachineryFix — last reviewed — questions? Call +91 70133 33007

Proximity and Photoelectric Sensors giving trouble? Get a technician onsite.

Describe the fault and we'll match an experienced specialist near you.