How to Test Proximity Sensors in the Field
A stopped conveyor, failed cylinder sequence, or missed part count often gets blamed on the proximity sensor first. That is reasonable, but not always correct. Knowing how to test proximity sensors systematically separates a failed sensor from a wiring fault, incorrect target condition, power supply issue, or PLC input problem before a replacement part is ordered.
The fastest field test starts with the sensor documentation or part number. Confirm the sensing principle, supply voltage, output type, wiring configuration, sensing distance, and output logic. An inductive PNP normally open sensor does not test the same way as a two-wire AC sensor or a photoelectric sensor with a relay output. Testing without those details can produce a false diagnosis.
Start With Safe, Basic Checks
Lock out the machine when the test requires access to moving equipment, pinch points, or hazardous voltage. If the sensor must remain powered for diagnosis, follow the facility's electrical safety procedures and keep the machine in a controlled state. Do not bypass safety circuits or force machine motion simply to prove a sensor output.
Inspect the sensor body, cable, connector, mounting hardware, and target before reaching for a meter. Look for a cracked sensing face, bent bracket, loose connector, damaged cable jacket, oil intrusion, metal chips on an inductive face, or a target that has shifted outside the rated sensing range. On washdown equipment, pay particular attention to connector seals and cable entry points.
Then verify that the target is appropriate for the sensor. Inductive sensors detect metal, but their rated sensing distance is usually based on a standard steel target. Aluminum, brass, stainless steel, and small or thin targets reduce effective range. Capacitive sensors can react to plastic, liquid, powder, and material buildup, so a dirty sensing face or product residue may cause switching that looks intermittent. Photoelectric sensors add alignment, reflector condition, lens contamination, and background effects to the troubleshooting process.
How to Test Proximity Sensors at the Sensor
A complete test has three parts: confirm power at the sensor, confirm that the sensor changes state when the target is present, and confirm that the output reaches the control system. Start at the sensor rather than the PLC cabinet. This narrows the fault quickly.
Verify Supply Voltage and Polarity
Use a properly rated digital multimeter to measure voltage at the sensor connector or accessible terminals while the circuit is energized. For most DC industrial sensors, check between the brown positive supply wire and blue DC common wire. A nominal 24 VDC sensor needs voltage within its published operating range, not merely a reading that looks close to 24 volts with no load.
Low voltage can occur because of a loaded power supply, corroded terminals, a damaged cable, or a high-resistance common connection. Measure with the sensor connected whenever possible. A disconnected cable may show correct voltage even though it collapses when the sensor is operating.
Verify polarity as well. Standard IEC DC sensor wiring is commonly brown for positive, blue for negative, black for output 1, and white for output 2 or a complementary output. Do not assume every legacy installation follows that convention. Check the wiring diagram printed on the sensor or listed in the manufacturer documentation.
Check the Indicator LED, But Do Not Stop There
Most industrial proximity sensors have one or more LEDs. A power LED confirms that the device is energized. A status LED usually indicates that the output has switched or that the target has been detected. Bring a known-good target into the sensing zone and observe the status indication.
An LED that never changes may point to a failed sensor, excessive target distance, incorrect target material, or wrong sensitivity setting. An LED that changes reliably while the machine still faults usually means the issue is downstream of the sensing element. That could be the output circuit, connector, input module, PLC logic, or an intermittent conductor.
LEDs are useful, but they are not proof of a usable electrical output. A sensor can indicate target detection while its output transistor cannot drive the load correctly. Continue with a voltage or current test.
Measure the Output State
For a three-wire DC PNP sensor, the output typically sources positive voltage to the PLC input when the sensor turns on. Measure between the black output wire and DC common. When active, the meter should read near the supply voltage. When inactive, it should read near zero volts, although leakage and input circuitry can create a small residual reading.
For an NPN sensor, the output sinks current to DC common when active. Measure according to the input circuit, often between the output and positive supply. In the active state, the output is pulled toward zero volts. The key point is to test against the correct reference. A PNP and NPN sensor may both have switching LEDs, but their electrical behavior is opposite.
If the sensor has a normally closed output, its voltage state will be reversed from a normally open model. Some four-wire sensors provide both NO and NC outputs. Identify which conductor is wired to the machine input before deciding that the logic is wrong.
A meter test should be performed with the sensor connected to its normal load if possible. An unloaded transistor output may appear correct but fail when connected to a PLC input, relay interface, or solenoid driver. If the output voltage is questionable, compare it with a known-good sensor of the same type on an identical circuit.
Test the Cable, Connector, and PLC Input
If the sensor has correct supply voltage and a clear output change at its connector, move downstream. Check the same signal at the junction box, terminal strip, and PLC input terminal. A signal that disappears between two points identifies the section of cable or connection that needs attention.
Cable faults are common on moving machine sections, cable tracks, door hinges, robot dress packs, and areas exposed to vibration. Flex the cable carefully while monitoring the input state or meter reading. An intermittent result often indicates broken conductors inside an intact-looking cable.
At the PLC or remote I/O module, verify the input indicator. If the sensor output changes but the input LED does not, confirm the input module's common wiring and compatibility with PNP or NPN field devices. A sourcing sensor requires a sinking input circuit, and a sinking sensor requires a sourcing input circuit. Mismatched field wiring can prevent the input from seeing a valid state even when the sensor itself works.
If the input LED changes but the machine sequence does not respond, the sensor circuit is likely functioning. The remaining fault may be in PLC logic, input addressing, interlocks, timers, safety logic, HMI commands, or a different field device. That is not a reason to replace the sensor.
Use the Right Test Method for the Sensor Type
Inductive proximity sensors are generally the simplest to test. Use a clean metal target of adequate size and move it squarely toward the sensing face. Avoid testing at the extreme edge of the rated range. A sensor rated for an 8 mm nominal distance may switch inconsistently at 8 mm in real machine conditions, especially with non-ferrous targets or poor alignment.
Capacitive sensors require more care because sensitivity can be affected by humidity, product buildup, mounting material, and nearby objects. If the sensor has a sensitivity adjustment, document its current position before making changes. Adjust only enough to establish stable detection of the intended product, then confirm it does not falsely trigger on surrounding machine structure.
Photoelectric sensors should be tested with clean optics and the actual production target whenever possible. A carton, clear bottle, glossy label, or dark rubber part can behave differently from a hand or generic test object. For retroreflective models, inspect the reflector and verify polarization requirements. For background suppression models, confirm the background distance has not changed after mechanical adjustments.
Two-wire AC or DC sensors need special attention because they are wired in series with the load and have off-state leakage current. A PLC input or relay may not switch cleanly if the load is below the sensor's minimum operating current. Use the manufacturer's wiring diagram and electrical specifications rather than applying a standard three-wire DC test method.
Avoid Common Diagnosis Errors
Do not judge sensor health by the PLC program alone. A forced input, simulation routine, or latched alarm can make a failed sensor look functional. Likewise, do not use a screwdriver, wrench, or random piece of metal as an inductive test target unless its material and size are suitable for the application.
Avoid swapping a sensor with a different output type simply because the connector fits. A PNP versus NPN mismatch, different NO/NC logic, shorter sensing range, or incompatible connector pinout can create a new fault. Match the complete part number where possible, including sensing distance, housing style, output configuration, voltage rating, and environmental rating.
When a sensor is confirmed failed, record the exact model number and the observed failure mode before replacement. That information helps prevent repeat failures caused by mounting impact, cable strain, washdown exposure, electrical noise, or an application operating too close to the sensor's limits. A correct replacement restores production, but a correct diagnosis helps keep it running.