3-wire NPN optical sensor stopped detecting, how to test with multimeter?
I have a 3-wire NPN optical sensor (photo-interrupter) on a machine that has stopped detecting the flag passing through its slot. The machine is down because of this. How can I test this sensor with a multimeter and what are the common causes for this type of failure?
When a 3-wire NPN optical sensor fails to detect, it usually points to a wiring issue, a power supply problem, or the sensor itself has failed. The NPN output switches the common (negative) side of the load. You can use a multimeter to check for proper voltage supply and the sensor's output signal.
Likely causes and checks
1No power to the sensor
- Points to it
- The sensor requires proper voltage to operate. If there's no power, it cannot emit or receive light, nor can it switch its output. This is a common first check for any sensor issue.
- Check
- With the machine powered, using a meter rated for it, check the voltage between the sensor's positive supply wire (usually brown) and the common/negative wire (usually blue) at the sensor connector. It should match the sensor's specified operating voltage (e.g., 10-30V DC). If no voltage, trace the wiring back to the power source or control panel.
2Damaged or misaligned sensor
- Points to it
- Physical damage to the sensor's housing, lens, or internal components can prevent it from functioning. Misalignment means the light beam is not properly interrupted or received, even if the sensor is powered.
- Check
- Visually inspect the sensor for cracks, dirt, or debris on the lenses. Ensure the sensor is securely mounted and that the flag passes cleanly and completely through the slot, interrupting the light path. Check for any signs of impact or corrosion.
3Faulty sensor output wiring or load
- Points to it
- Even if the sensor is powered and detecting, a break in the output wire (usually black) or a problem with the connected load (e.g., PLC input, relay coil) will prevent the signal from reaching its destination.
- Check
- With the sensor powered, using a meter rated for it and the flag NOT in the slot, check the voltage between the output wire (black) and the positive supply wire (brown). For an NPN sensor, this should be close to the supply voltage. When the flag IS in the slot, the output (black wire) should switch low, close to 0V (or the common/blue wire potential). If it doesn't switch, the sensor is likely faulty. If it does switch, check continuity of the output wire to the PLC input or load, and verify the load itself.
4Internal sensor failure
- Points to it
- Like any electronic component, the internal circuitry of the sensor can fail due to age, electrical spikes, or environmental factors, even if power is present and wiring is intact.
- Check
- If power is confirmed, wiring is good, and the sensor is clean and aligned, but the output still does not switch as expected, the sensor itself is likely faulty. The most reliable check is to replace the sensor with a known good one of the same model and specifications.
Next check: After checking power and wiring, if the sensor still doesn't provide the correct output, try temporarily bypassing the sensor's output signal at the PLC input (if safe and possible) to confirm the issue is with the sensor and not the downstream control logic or input module.
What it typically looks like in the data
Related questions
Describe the fault or upload a photo, and InduQT checks it against the manufacturer manuals. Share the result here when it helps someone else.