Zhejiang Xinsenzheng Automation Co., Ltd.

Industrial Sensor Manufacturer OEM & Application Support Factory-direct Supply
Industrial technician operating a machine control panel while diagnosing a sensor signal

Industrial sensor troubleshooting

Proximity Sensor Not Working? 9 Ways to Fix It Fast

Do not replace the sensor first. Trace the fault from target to sensing face, supply, output, cable, PLC input, and program logic. The indicator LED tells you only one part of that chain. This field guide shows where to check next when the sensor is dead, always ON, intermittent, short-range, or switching without reaching the PLC.

  • No indicator LED
  • LED changes but PLC does not
  • Output stays ON
  • Intermittent or reduced range

Direct answer

What should you check first when a proximity sensor is not working?

Capture the exact symptom, make the machine safe, and separate the problem into three states: does the sensor have correct power, does its output change, and does the PLC input recognize that change? Most faults become much easier once these are tested separately instead of treating the sensor and PLC as one black box.

No LED Check model-specific supply voltage, connector pinout, polarity, cable damage, and voltage at the sensor under the actual connection.
LED changes Check the output conductor, PNP/NPN compatibility, PLC input common, connector continuity, and input-channel status.
Always ON Check NO/NC logic, nearby metal, excessive sensitivity, residual current on two-wire models, and a shorted output.
Intermittent Increase sensing margin and inspect vibration, target path, adjacent sensors, voltage drop, cable movement, noise, oil, chips, and temperature.

Symptom finder

Select what you see before moving wires or changing the program.

The quickest diagnostic path depends on whether detection fails inside the sensor, along the cable, at the PLC input, or later in the control logic. Choose the closest symptom for a practical starting point.

Recommended starting point

Prove power at the sensor, not only at the cabinet.

A dark indicator can mean missing supply, reversed polarity, a wrong connector pinout, broken cable, undervoltage at the load, or a model whose LED indicates output rather than power.

Check first Read the exact model label and wiring diagram. Inspect the connector and measure the specified supply pair at the sensor connection.
Likely fault area Power supply, polarity, M8/M12 pinout, cable, terminal, fuse, or damaged electronics.
Useful comparison Compare the reading connected and disconnected only when the manufacturer's procedure permits it. A voltage collapse under load points upstream.
Next section Go to Fix 5 for supply measurement, then Fix 6 for pinout and cable checks.

Before touching the machine

Control hazardous energy before troubleshooting.

A 24 VDC sensor circuit can be part of equipment with dangerous electrical, mechanical, pneumatic, hydraulic, thermal, or stored energy. A stopped HMI screen or PLC output is not an energy-isolating device.

1

Use the site procedure

Only trained and authorized personnel should troubleshoot. Follow the machine risk assessment, energy-control procedure, electrical work rules, and required personal protective equipment.

2

Isolate before handling

De-energize and control stored energy before moving a sensor, opening a connector, checking continuity, adjusting a bracket, reaching into a hazard zone, or repairing a cable.

3

Control energized tests

If power must be temporarily restored for an approved functional test, clear tools and people, use the defined test state, then de-energize and reapply energy-control measures before continuing service.

Do not bypass a guard, safety function, interlock, or protective device to make a sensor appear operational. A standard proximity switch is not automatically a safety-rated device. Restore the machine only after the complete safety function and normal control sequence have been validated under the site's procedure.

Trace one link at a time

A working indicator LED does not prove that the PLC received a usable signal.

The sensor LED usually reports an internal operating state, but the machine decision travels through several separate links. Test the chain in sequence and stop replacing parts blindly.

1

Target

Correct material, size, direction, speed, gap, and repeatable path through the active sensing zone.

2

Sensing field

Correct sensor principle, flush or non-flush mounting, surrounding clearance, and environmental condition.

3

Sensor supply

Specified voltage and polarity present at the device, with acceptable ripple and no collapse during operation.

4

Output stage

PNP, NPN, two-wire, NO, NC, analog, or IO-Link behavior matches the intended circuit and load.

5

Cable and PLC

Correct pinout, continuity, input common, channel, threshold, filter, and shared reference potential.

6

Program decision

Correct input address, state interpretation, interlocks, debounce, timing window, and sequence conditions.

Establish a known baseline

Record the machine state before you disturb the evidence.

Intermittent faults disappear when a cable is moved, a bracket is tightened, or the cabinet door is opened. Before changing anything, capture the model code, supply, output type, LED state, PLC input state, target position, operating temperature, machine speed, nearby loads, and the exact point in the cycle where failure occurs.

Use a known target and repeat the same approach several times. Observe whether the operating point moves, whether the LED and PLC disagree, and whether the failure follows vibration, a motor start, a weld cycle, washdown, heat, cable movement, or product variation.

A good fault record says: “M12 inductive PNP NO sensor, LED switches every time at the target, PLC input stays OFF, failure began after connector replacement.” A poor record says only: “sensor bad.”
Correct industrial proximity sensor selection and stable machine detection arrangement
Stable detection begins with a repeatable target path, sufficient working margin, correct mounting geometry, and an output that matches the controller input.

Nine fixes in diagnostic order

Move from the easiest external cause to the electrical and environmental causes.

Each step should produce evidence. If a step passes, move to the next link; if it fails, correct that condition and retest before changing something else.

1

Define the failure state precisely

Separate “does not detect” from “detects but the machine does not react.” Observe the sensor LED, the physical PLC input indicator, the live input tag, and the final machine output as separate signals.

Do this
Record the exact model number, symptom, timing, target, LED state, PLC input state, and recent changes. Repeat a controlled target approach without moving the cable.
Pass
The symptom is repeatable and assigned to one segment of the signal chain.
Fail clue
The fault changes when the cable, connector, bracket, nearby machine, or temperature changes.
2

Inspect the sensor, face, target, and bracket

Look for impact marks, a cracked or worn sensing face, loose locknuts, a shifted bracket, metal chips, oil buildup, moisture, a loose connector, crushed cable, or a target that no longer follows the original path.

Do this
Under the approved isolated state, clean with a compatible method, restore the specified gap, tighten only to the model's permitted torque, and repair damaged mechanical support.
Pass
The sensor and target remain stable through the full machine cycle with no cable strain.
Fail clue
The operating point moves when the bracket is touched or the cable bends near the body or connector.
3

Confirm the target matches the sensor principle

An inductive sensor requires a conductive metal target. Its rated distance is normally established with a defined standard target, so smaller targets and some non-ferrous metals can reduce usable reach. Plastic, glass, liquid, wood, and powder usually need another sensing principle.

Do this
Compare actual target material, dimensions, thickness, approach direction, and gap with the model datasheet. Test with the specified reference target where practical.
Pass
The real target switches with margin across its full tolerance and temperature range.
Fail clue
A large steel test piece works, but the actual small stainless or aluminum part does not.
4

Correct mounting metal and mutual interference

Flush and non-flush inductive sensors do not share the same metal-clearance rules. A non-flush sensor embedded too deeply can be pre-damped by the bracket. Nearby sensors can also couple into one another and make output unstable.

Do this
Use the exact model's installation drawing for side clearance, face clearance, opposed mounting, and sensor-to-sensor spacing. Do not substitute a generic “two diameters” rule.
Pass
The output remains stable when adjacent sensors are powered and surrounding machine metal is in its normal position.
Fail clue
The sensor returns to normal when removed from the bracket or when the neighboring sensor is powered down.
5

Verify supply voltage at the sensor

Voltage at the cabinet supply does not prove voltage at the sensor. Long cables, loose terminals, damaged conductors, connector resistance, shared loads, and poor common connections can create a drop that appears only when the circuit is connected or another load switches.

Do this
Using the model diagram and approved electrical test procedure, verify the specified supply and polarity at the sensor-side connection. Observe minimum and transient values during the failing event.
Pass
Voltage remains inside the exact model's permitted range with acceptable ripple in all operating states.
Fail clue
Correct voltage at the power supply becomes undervoltage at the sensor, especially during solenoid, motor, or contactor operation.
6

Check pinout, connector, and cable continuity

M8 and M12 connectors can look mechanically compatible while using different pin assignments or functions. Field-wireable plugs are common sources of swapped conductors, loose strands, poor shielding, moisture entry, or intermittent contact.

Do this
De-energize before continuity and insulation checks. Compare each pin with the exact sensor and PLC diagrams; inspect both mating halves, strain relief, bend points, and junction terminals.
Pass
Every intended conductor has stable continuity, no unintended short, correct pin assignment, and a secure environmental seal.
Fail clue
The signal appears when the connector is flexed, bypassed with a known-good cable, or reseated.
7

Match PNP or NPN to the PLC input common

A PNP output sources current toward the input; an NPN output sinks current toward 0 V. The PLC input group must provide the complementary current path. A mismatch often produces the classic symptom: the sensor LED responds, but the input channel never turns ON.

Do this
Read both diagrams and trace the complete current loop through the sensor output, PLC input circuit, and input-group common. Do not infer polarity from wire color alone.
Pass
The output terminal changes to the state expected by the compatible PLC input, and the physical channel indicator follows.
Fail clue
A known-good sensor of the opposite output polarity works on the same input arrangement.
8

Confirm NO, NC, two-wire leakage, and load limits

NO and NC describe output behavior, not PNP or NPN polarity. Two-wire sensors also pass a small current while OFF and retain some voltage while ON. High-impedance inputs may not reset if this leakage exceeds their threshold.

Do this
Compare target-present and target-absent states with the model's operation chart. Check PLC input thresholds, sensor residual voltage, leakage current, load current, and any series or parallel connections.
Pass
Both ON and OFF states fall comfortably inside the receiving device's guaranteed thresholds.
Fail clue
The input remains faintly active with the sensor OFF, or the sensor output protection trips when the load is connected.
9

Remove noise, surge, heat, moisture, and process causes

If every static test passes, recreate the real operating environment. Inverter cables, contactors, welders, solenoids, poor grounding, adjacent power conductors, heat, condensation, chips, washdown, vibration, and product variation can create a fault only in production.

Do this
Correlate the failure with events, separate sensor wiring from power wiring as specified, suppress surges at their source, restore grounding and shielding, and test one controlled change at a time.
Pass
The signal remains stable at maximum speed and worst credible environment with sufficient switching margin.
Fail clue
False transitions line up with a motor, welder, valve, cable movement, temperature change, or cleaning cycle.
Technician adjusting industrial machinery where vibration and target movement can affect a proximity sensor

When the fault is intermittent

Test the machine condition that creates the failure, not only a hand target while stopped.

A hand-held target can prove that the sensor is alive, but it cannot prove production reliability. Validate the actual target at operating speed with real vibration, temperature, cable movement, nearby loads, and mechanical tolerance.

  • Mark the sensor and bracket position before adjustment so movement becomes visible.
  • Compare LED transitions with PLC input transitions during the same cycle.
  • Check whether the target reaches the center of the field with working margin, not merely the rated edge.
  • Log the event time against motors, contactors, weld cycles, valves, and product changes.

Where to measure

Use the disagreement between LED, output terminal, and PLC input to localize the fault.

Measurements must follow the exact product diagrams and the site's electrical safety procedure. Values below are diagnostic relationships, not universal voltage limits.

Observed state Measurement or observation What the result suggests Best next action
No LED in either target state Verify the model's supply pair and polarity at the sensor-side connector. Missing power, wrong pinout, reversed polarity, cable fault, undervoltage, or damaged sensor. Correct power and pinout first. Then retest with a known target before replacing the device.
LED changes, output does not Observe the output conductor against its correct reference with and without the target. Shorted or overloaded output, incompatible load, protection state, wrong conductor, or failed output stage. Remove the load only under the approved procedure, check load current and shorts, then compare with a known compatible input.
Output changes, PLC indicator does not Trace current through the PLC input terminal and input-group common. PNP/NPN mismatch, wrong common, open signal conductor, different reference potential, or failed input channel. Correct the input circuit and prove the channel with the PLC manufacturer's permitted test method.
PLC indicator changes, program tag does not Compare the physical input address with the configured tag, filter, and module diagnostics. Address mapping, disabled module, input filter, forcing, safety partition, or program logic issue. Review hardware configuration and online diagnostics before changing the sensor.
Works stopped, fails running Capture voltage and input state during the actual failing event with an approved method. Voltage sag, EMI, surge, vibration, target-speed limit, insufficient range margin, or cable movement. Correlate transitions with the machine event, then correct one environmental cause at a time.
Input never resets with a two-wire sensor Compare OFF-state leakage and residual voltage with the receiving input's reset thresholds. The circuit may be electrically intact but incompatible at low current. Use the model-specific countermeasure, compatible input, or interface recommended by the manufacturers.

Never assume a universal 24 VDC value, wire color, or connector pinout. Many industrial sensors use familiar conventions, but two-wire AC/DC models, four-wire outputs, analog models, IO-Link devices, custom cables, and field-wired connectors can differ. The exact model label and datasheet control the test.

Industrial proximity sensor mounted at the wrong sensing distance from a machine target
A rated sensing distance is a reference under defined test conditions. The actual target, temperature, voltage, mounting metal, and machine tolerance determine usable working margin.

When the range seems too short

Do not set the production gap at the edge of the rated distance.

Inductive sensing distance changes with target material and size. A small non-ferrous target may switch substantially closer than the standard steel target used for catalog characterization. Surrounding metal can reshape the field, while voltage and temperature variation can move the operating point.

Build usable operating margin

  • Identify the datasheet's rated distance, assured operating distance, target definition, and hysteresis.
  • Use the smallest, least favorable target and largest real gap expected in production.
  • Include bracket tolerance, bearing play, thermal expansion, vibration, product variation, and maintenance movement.
  • Validate both switch-ON and reset positions; an output that turns ON but will not reset is still an unstable design.
If a large steel tool triggers the sensor but the actual part does not, first suspect target physics and working margin. That result does not prove the production sensor is defective.

Output compatibility

PNP/NPN and NO/NC answer two different questions.

PNP or NPN tells you how current is switched. NO or NC tells you which output state exists with the target absent or present. A sensor can be PNP NO, PNP NC, NPN NO, NPN NC, dual-output, or selectable.

PNP output

The sensor sources current to the input.

When the output turns ON, a typical PNP transistor provides a positive-side path toward the load. The receiving input must provide the compatible return path. Confirm the input card's actual circuit and common terminal from its manual.

Trace: sensor positive supply > PNP output stage > PLC input > input common/return Common fault: LED operates, but the input has no complete return path.
NPN output

The sensor sinks current from the input.

When the output turns ON, a typical NPN transistor provides a path toward 0 V. The receiving input must source current into that path. Again, verify the module rather than relying only on “sinking” or “sourcing” labels used inconsistently in conversation.

Trace: PLC input common/supply > PLC input > NPN output stage > sensor 0 V Common fault: the input common is wired for a PNP circuit, so no current reaches the NPN output.
Operation mode Target absent Target present Common misunderstanding
Normally open (NO) Output switching element is normally OFF. Output switches ON when the defined target enters range. “Open” does not mean no supply, and it does not identify PNP or NPN.
Normally closed (NC) Output switching element is normally ON. Output switches OFF when the defined target enters range. An NC sensor can look “stuck ON” if the technician expects NO logic.
Two-wire electronic sensor A small OFF-state leakage current may still flow through the series circuit. Some residual voltage remains across the sensor while conducting. It is not a perfect mechanical contact; the load/input thresholds must be compatible.

Mechanical and electrical interference

Look for the pattern that makes the sensor fail.

A proximity sensor that passes on the bench but fails on the machine is telling you that the installation matters. Use event correlation instead of random component replacement.

Fails near metal Review flush/non-flush mounting, bracket clearance, opposing metal, and provided nut material.
Fails near another sensor Check the model's mutual-interference spacing or alternate-frequency options.
Fails when a motor starts Check voltage sag, cable routing, induced noise, grounding, shielding, and the motor drive installation.
Fails when a coil turns off Check surge suppression at contactors, solenoids, relays, valves, and other inductive loads.
Fails when warm Confirm the sensor's temperature range, mounting heat path, target movement, and supply behavior at temperature.
Fails after washdown Inspect connector sealing, cable jacket, face damage, chemical compatibility, condensation, and water entry.
Gloved technician checking industrial machine hardware during troubleshooting
Mechanical movement, cable load, target position, contamination, and nearby equipment can create a failure that never appears during a simple bench test.

When the new sensor also does not work

A matching thread size is not a matching electrical and sensing specification.

If the replacement shows the same fault, the original sensor may not have been the failed component. Compare the complete suffix, circuit, mounting, and application before concluding that two sensors are defective.

Use a controlled substitution

A known-good substitution is useful only when the replacement is electrically compatible, mounted correctly, and tested against the same target. Changing sensor type, output polarity, operation mode, cable pinout, and working gap at once creates more variables than it removes.

When possible, test the suspect sensor on a verified circuit and test a verified sensor on the suspect circuit. This A/B method helps separate a device fault from a machine-side fault.

If both sensors behave correctly on a verified test setup but fail on the machine, return to supply, input common, connector, mounting metal, target margin, and environmental interference.
Exact model code Compare every prefix and suffix, not only body diameter or sensing distance printed in large type.
Supply Confirm AC/DC type, permitted range, polarity, current consumption, startup behavior, and protection requirements.
Output Match PNP/NPN/two-wire/analog/IO-Link, NO/NC, load current, residual voltage, leakage current, and protection behavior.
Connection Compare pre-wired cable, M8/M12 keying, pin count, pin assignment, field plug wiring, and cable function.
Mounting Confirm flush or non-flush construction, clearances, torque, housing length, face position, and bracket geometry.
Target and speed Check target material and size, assured working distance, hysteresis, response frequency, and approach direction.
Industrial maintenance team validating machinery controls after troubleshooting

Restore with evidence

Do not stop when the LED flashes once.

The repair is complete only when the sensor, PLC input, program state, actuator response, and machine safety behavior agree over repeated cycles and realistic operating conditions.

  • Remove temporary test jumpers, tools, meters, bypasses, and loose wiring.
  • Restore guards, connector seals, cable support, labels, and approved settings.
  • Notify affected personnel and follow the site's controlled restart procedure.
  • Document the root cause and the evidence that the correction worked.

Post-repair validation

Run five checks before returning the machine to production.

A single successful manual trigger is not enough. Validate the complete machine decision under controlled normal and worst-case conditions defined by your process.

1

Static state

Confirm target absent and target present states at the LED, output, PLC input, and program tag.

2

Repeat cycles

Run enough cycles to expose target variation, connector movement, vibration, and intermittent output.

3

Worst margin

Test the smallest target, largest gap, highest speed, and unfavorable permitted process condition.

4

Nearby loads

Operate drives, coils, welders, valves, and adjacent sensors that were active during the failure.

5

Safety and restart

Restore all protection, clear personnel, remove energy controls by procedure, and confirm safe normal operation.

Faster model support

Send the application facts, not only “sensor not working.”

XSZ can narrow a replacement or application recommendation faster when the target, circuit, mounting, and failure state are visible together.

Request sensor troubleshooting support
1. Model and label Clear photo of the complete code, voltage, output, operation mode, and connection marking.
2. Target and gap Material, minimum dimensions, approach direction, normal distance, maximum distance, and speed.
3. Wiring diagram Sensor pinout, cable/connector, supply, PLC module, input terminal, and group common.
4. Failure evidence LED state, PLC input state, measured supply, timing, environmental condition, and recent changes.
5. Mounting photos Sensor face, bracket, surrounding metal, target path, neighboring sensors, and cable routing.
6. Order requirement Quantity, cable or connector, output preference, environment, certification, OEM label, and delivery need.

Need a compatible proximity sensor instead of another guess?

Share your target, working gap, supply, PLC input, mounting space, environment, quantity, and preferred cable or connector. XSZ will help narrow the sensing principle and output configuration before quotation.

Frequently asked questions

Proximity sensor troubleshooting FAQ

Short answers to the questions engineers and maintenance teams ask when a proximity sensor stops working.

Why does the proximity sensor LED turn on but the PLC gets no signal?

The sensor can detect the target internally while the current path to the PLC remains incomplete. Check the output conductor, connector pinout, cable continuity, PNP/NPN compatibility, PLC input-group common, shared reference potential, channel diagnostics, and input mapping. Prove the sensor output at the receiving terminal before changing program logic.

How can I test an industrial proximity sensor with a multimeter?

Use only the exact model diagram and your site's approved electrical test procedure. Qualified personnel can verify the specified supply at the sensor connection and observe the output against the correct reference in target-present and target-absent states. De-energize and control hazardous energy before continuity, connector, resistance, mounting, or cable repair work. Never apply a guessed voltage or pinout.

What voltage should a proximity sensor receive?

There is no universal value. Many factory sensors use a nominal 24 VDC system, but permitted ranges vary, and AC two-wire, DC two-wire, three-wire, analog, and IO-Link devices differ. Read the complete model code and datasheet. Measure at the sensor-side connection because cabinet voltage can hide cable or terminal drop.

Why is my proximity sensor always ON?

First confirm whether the device is normally closed. Then check for nearby metal pre-damping an inductive sensor, excessive capacitive sensitivity, a target that never fully leaves the reset zone, output-wire shorts, two-wire leakage current, an incompatible high-impedance input, and a failed output stage. Compare the sensor LED, output terminal, and PLC input separately.

Can a metal mounting bracket cause false triggering?

Yes, especially when a non-flush inductive sensor is mounted too deeply or without the required side and front clearance. Surrounding metal can change the field, reduce or increase apparent distance, degrade stability, and prevent reset. Use the exact model's flush/non-flush installation drawing and supplied mounting hardware.

Why does a new replacement proximity sensor still not work?

The machine-side fault may remain, or the replacement may differ in PNP/NPN output, NO/NC mode, two-wire/three-wire circuit, connector pinout, supply range, flush/non-flush mounting, sensing distance, target specification, or response speed. Compare every model suffix and test the suspect sensor and circuit independently where practical.

Does choosing PNP instead of NPN change the sensing distance?

PNP and NPN describe the switched current path, not the sensing principle. Equivalent models may share sensing performance, but you must confirm the specific datasheets rather than assume two catalog variants are identical. The PLC input circuit usually determines which polarity is compatible.

When should I replace the sensor instead of troubleshooting further?

Replace it when the correct target, mounting, power, compatible load, pinout, and environment have been verified and the device still fails its manufacturer-defined functional test, or when the face, housing, cable entry, connector, or cable is physically damaged beyond approved repair. Investigate the root cause first so the replacement is not damaged by the same overload, impact, heat, moisture, or wiring fault.

Technical references and image credits

Sources used for this field guide

  1. OSHA 29 CFR 1910.147: The control of hazardous energy (lockout/tagout).
  2. OMRON: Safety Precautions for All Proximity Sensors, including target influence, mutual interference, surrounding metal, leakage current, noise, mounting, and wiring.
  3. OMRON FAQ: Difference between NPN and PNP transistor outputs.
  4. OMRON FAQ: Normally open and normally closed operation.
  5. ifm: Compact inductive sensor installation guidelines, including flush and non-flush mounting.
  6. XSZ images: Proximity Sensors Overview.
  7. Hero image: Industrial worker operating a machinery control panel on Pexels.
  8. Mechanical adjustment image: Machinery at workshop on Pexels.
  9. Industrial hardware image: Person hand on industrial machinery on Pexels.
  10. Team validation image: Industrial workers operating machinery indoors on Pexels.

This guide supports general industrial troubleshooting and model selection. Product limits, wiring, machine safety, and legally required work practices remain specific to the sensor, control system, machine, facility, and jurisdiction.

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare