Zhejiang Xinsenzheng Automation Co., Ltd.

Industrial Sensor Manufacturer OEM & Application Support Factory-direct Supply
Sensor Troubleshooting Guide

Sensor Troubleshooting Guide for Industrial Automation.

Use this practical guide to diagnose no output, false triggering, missed detection, unstable signals and PLC input problems on proximity sensors, photoelectric sensors, fiber optic sensors, magnetic switches and light curtains.

  • No output, no LED or PLC input not changing
  • False triggering, missed detection and unstable signals
  • NPN/PNP, NO/NC, voltage and wiring checks
  • Application details to send for fast model support
View Knowledge Center
Industrial sensor troubleshooting guide for automation machines
Diagnose by symptomStart with power, output, target, distance, wiring and environment
PowerVoltage check
SignalOutput logic
TargetReal condition
For MaintenanceFast checks for field wiring, mounting and signal issues
For BuyersUnderstand whether the issue is selection, wiring or installation
For OEM MachinesReduce repeated faults by standardizing model and wiring details
XSZ SupportSend photos, wiring and target details for troubleshooting help
First Checks

Before replacing the sensor, check the basic conditions

Many sensor faults are caused by power, wiring, distance, target change or installation movement. Start with simple checks before changing models.

Power supply

Measure voltage at the sensor, not only at the control cabinet. Check polarity and voltage range.

Output type

Confirm NPN or PNP, NO or NC, 2-wire or 3-wire, and whether the PLC input type matches.

Target condition

Check target material, size, color, surface, speed and path under real production conditions.

Working distance

Use actual sensing distance with margin. Do not run at the maximum catalog distance if stability matters.

Mounting stability

Inspect bracket looseness, vibration, surrounding metal, background reflection and mechanical tolerance.

Environment

Look for dust, oil, water, heat, electrical noise, cable stress, lens contamination or fiber bending.

Symptom Matrix

Common sensor symptoms and first checks

Use this table to quickly narrow the problem before deeper testing. The same symptom can come from wiring, selection, installation or environment.

SymptomLikely causesFirst checksCommon next action
No LED / no powerNo supply, wrong polarity, damaged cable or wrong voltageMeasure voltage at sensor wiresRepair wiring or confirm sensor voltage
LED changes but PLC does notNPN/PNP mismatch, wrong input common, wrong output wireCheck PLC input type and wiring diagramMatch output type or rewire input
False triggeringBackground reflection, nearby metal, vibration, sensitivity too highCheck mounting, background and target pathAdjust position or choose better sensing mode
Missed detectionTarget too small, distance too long, response too slow, weak contrastCheck real target size, speed and working distanceReduce distance or change sensor type
Intermittent signalLoose bracket, cable stress, contamination, temperature driftMove cable, tap bracket, clean sensing faceImprove mounting and environmental protection
Signal invertedNO/NC mismatch or PLC program expects opposite stateCheck target-present input stateUse correct output logic or update program
No Output

If the sensor has no output, separate power problems from signal problems.

A sensor may have no LED, a LED but no output, or a correct output that the controller cannot read. These are different faults.

  • Measure supply voltage at the sensor brown and blue wires.
  • Confirm DC or AC sensor type and allowed voltage range.
  • Check black output wire connection and PLC input common wiring.
  • Confirm NPN/PNP output type and controller input compatibility.
  • Test with a known target at a short stable distance.

No LED

Check power supply, polarity, wire break, connector pinout and voltage rating.

LED turns on

Check output wiring, NPN/PNP mismatch and whether the PLC input common is correct.

Output works alone

If bench test works but PLC fails, the issue is likely input module wiring or signal type.

False Triggering

False triggering usually means the sensor sees something besides the target

Unwanted signals often come from background objects, vibration, reflective surfaces, nearby metal, dust, water or sensitivity settings.

Common causes

  • Photoelectric sensor sees background reflection or glossy surfaces.
  • Inductive sensor is too close to surrounding metal.
  • Capacitive sensor sensitivity is affected by humidity or buildup.
  • Fiber tip is dirty or receives scattered light.
  • Bracket vibration moves the target into and out of the sensing zone.
Fix

Better checks

  • Test with the real background, not only a hand target.
  • Reduce sensitivity or choose background suppression where needed.
  • Change angle to avoid direct reflection.
  • Use proper flush or non-flush mounting for proximity sensors.
  • Strengthen mounting and protect the sensing face from contamination.
Missed Detection

Missed detection means the target is not producing enough reliable signal

When sensors miss targets, the issue is often target size, movement speed, sensing distance, contrast, alignment or response time.

Target too small

Use a smaller beam, fiber optic sensor, through-beam mode or a sensor with better resolution.

Distance too long

Move the sensor closer or choose a sensor designed for the real working distance with margin.

Target too fast

Check response time, PLC input scan time and signal pulse length.

Weak optical contrast

For photoelectric sensors, check target color, transparency, surface and background.

Metal type changes

Inductive sensing distance can change with aluminum, brass, stainless steel or small metal targets.

Path variation

Guide the target path or widen the sensing zone if product position varies during operation.

Intermittent Signals

If the signal becomes unstable after running, inspect the installation environment.

Signals that are stable during setup but unstable after production often point to contamination, vibration, heat, cable movement or product variation.

  • Clean the sensing face, reflector, lens or fiber tip.
  • Check if vibration moves the sensor bracket or target path.
  • Inspect cable bending, pulling, connector looseness and wire damage.
  • Compare product color, size and surface changes during production.
  • Check temperature, water, oil, dust and electrical noise near the cable route.
Vibration

Signal changes randomly

Loose brackets or moving targets can create intermittent ON/OFF changes.

Cable

Signal changes when touched

Check connector, conductor break, cable stress and moving cable points.

Wiring Checks

When the sensor LED works but the PLC does not, check output compatibility

Electrical mismatch is one of the most common reasons a sensor appears good but the controller input stays wrong.

Check itemWhat can go wrongHow to verify
NPN / PNPSensor output type does not match PLC inputCheck PLC input common and sensor wiring diagram
NO / NCInput state is inverted from program expectationWatch PLC input when target is present and absent
2-wire / 3-wireLeakage current or voltage drop affects inputConfirm sensor wiring type and load requirement
Connector pinoutSame connector shape but different pin assignmentCompare pin numbers, not only wire colors
Input moduleInput common or voltage does not match sensor outputRead PLC input module wiring manual or terminal label
By Sensor Type

Troubleshooting tips by sensor family

Different sensor principles fail for different reasons. Use the sensor type to decide which details to inspect first.

Inductive proximity

Check metal target size, metal type, flush mounting, nearby metal and real sensing distance.

Capacitive proximity

Check sensitivity, target material, humidity, dust buildup, container wall and surrounding objects.

Photoelectric sensors

Check alignment, background reflection, target color, transparency, lens dirt and optical mode.

Fiber optic sensors

Check amplifier setting, fiber tip cleanliness, bend radius, target path and signal margin.

Magnetic switches

Check cylinder magnet position, switch groove, cable route, output type and mounting position.

Safety light curtains

Check alignment, beam obstruction, wiring, safety controller status, response distance and fault codes.

Optical Sensors

For optical sensors, check the light path before changing the model.

Photoelectric and fiber optic sensors depend on emitted and received light. Small changes in alignment, surface or contamination can cause big signal changes.

  • Clean lens, reflector, fiber head and protective cover.
  • Check if the target surface is glossy, black, transparent or changing color.
  • Confirm through-beam alignment or reflector position.
  • Move the sensor angle to reduce direct reflection from background.
  • For fiber sensors, inspect bend radius and amplifier signal level.

Stable optical setup

  • Target crosses the beam consistently.
  • Background is outside the sensing margin.
  • Lens or fiber tip stays clean.
  • Alignment does not change with vibration.
VS

Unstable optical setup

  • Reflective background is close to the target.
  • Target color or transparency changes.
  • Lens becomes dirty after production starts.
  • Fiber cable is bent too sharply.
Proximity and Magnetic

For proximity and magnetic sensors, check material and mounting conditions

Close-range sensors are sensitive to target material, mounting metal, magnet position and mechanical tolerance.

Flush mounting

Nearby metal problems

Wrong flush or non-flush installation can change sensing field and cause false signals.

Capacitive

Sensitivity drift

Humidity, dust, liquid residue or nearby materials can affect capacitive detection.

Magnetic

Cylinder position

Check magnet strength, groove position, switch location and whether the cylinder stroke reaches the sensor.

Cable

Movement stress

Cylinder and moving-machine applications often fail from cable strain or repeated bending.

Replacement

Same body, different output

Replacement sensors must match output logic, voltage, connector and installation distance.

Decision Point

Should you replace the sensor or redesign the selection?

If the same fault repeats, the installed sensor may not match the application. Use this workflow before buying more replacements.

01

Confirm wiring

Voltage, NPN/PNP, NO/NC, wire count, connector and PLC input must be correct.

02

Confirm application

Target, distance, speed, background, mounting and environment must match the sensor type.

03

Choose next step

Replace only if failed; redesign selection if margin is weak or the fault repeats.

Prevention

How to prevent repeated sensor failures and unstable detection

For OEM machines and repeat production, many sensor problems can be prevented by standardizing model details and installation rules.

Standardize output type

Use consistent NPN/PNP and NO/NC standards across machines where possible.

Keep sensing margin

Avoid using sensors at the edge of rated distance or weak optical signal margin.

Protect cable routing

Use strain relief, avoid sharp bends and keep cables away from moving or hot parts.

Document settings

Record amplifier threshold, teach mode, sensitivity and output logic for future replacement.

Control contamination

Add cleaning access or shielding for dust, oil, water, chips and product residue.

Use correct sensor family

Repeated false signals often mean the sensing principle is wrong for the target or environment.

XSZ support for industrial sensor troubleshooting and model replacement
Get Troubleshooting Support

Send these details so XSZ can help diagnose the problem faster.

Clear application information helps separate sensor failure from wrong selection, wiring mismatch or installation conditions.

SymptomNo output, false trigger, missed target or intermittent signal
WiringVoltage, NPN/PNP, NO/NC, PLC input and terminal photo
TargetMaterial, size, color, speed, distance and target path
SiteMounting photo, background, dust, water, oil, heat and vibration
FAQ

Sensor Troubleshooting FAQ

Why does my sensor LED turn on but the PLC input does not change?
The most common causes are NPN/PNP mismatch, wrong PLC input common wiring, incorrect output wire, wrong voltage level or input module compatibility problems.
Why does a sensor false trigger without a target?
False triggering can be caused by background reflection, nearby metal, high sensitivity, vibration, contamination, humidity, electrical noise or an unsuitable sensing principle.
Why does a sensor work during testing but fail in production?
Production conditions may add vibration, dust, oil, target speed, target position variation, temperature change, cable movement or product material differences that were not present during testing.
Should I replace the same sensor model when failures repeat?
If the same fault repeats, first check whether the sensor type, sensing distance, output logic, mounting and environment are suitable. Repeated failure may require a better model selection, not only replacement.
What information should I send for troubleshooting support?
Send the symptom, sensor model, wiring diagram, voltage, NPN/PNP, NO/NC, PLC input type, target details, working distance, mounting photos and environmental conditions.
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