Diffuse reflective proximity sensors are widely used in industrial automation for object detection, counting, and positioning. Unlike through-beam or retro-reflective sensors, diffuse sensors emit light and detect the reflection directly from the target object. Proper wiring is crucial for reliable operation and safety. This guide explains the correct wiring methods for common types of diffuse proximity sensors.
Most diffuse sensors have three or four wires, typically color-coded for easy identification. The standard wire colors are brown (positive), blue (negative), and black (output). For a 4-wire sensor, an additional white wire may be provided for a second output or function. Always refer to the manufacturer's datasheet before wiring, as color codes can vary.
For a 3-wire DC diffuse sensor, connect the brown wire to the positive DC supply voltage (usually 10-30V DC). Connect the blue wire to the DC common or ground. The black wire is the output signal. In a sinking (NPN) configuration, the black wire connects to the load, which is then linked to the positive supply. In a sourcing (PNP) configuration, the black wire connects to the load, which is then connected to the ground. Ensure the load (e.g., PLC input, relay) matches the sensor's output type.
For 4-wire DC sensors, the wiring follows a similar pattern. The brown and blue wires are for power. The black and white wires are typically for two separate outputs (e.g., normally open and normally closed). Alternatively, one might be for a switching output and the other for an analog signal or diagnostic function. Check the manual for the specific configuration.

AC-powered diffuse sensors usually have two or four wires. A 2-wire AC sensor is connected in series with the load and the AC power source (e.g., 90-250V AC). Polarity is not a concern here. For a 4-wire AC/DC sensor, there will be separate terminals for power and outputs. Typically, brown and blue are for power (AC or DC), while black and white are outputs.
Shielded cables are recommended for long cable runs or electrically noisy environments. Connect the cable shield to ground at the controller end only to prevent ground loops. Maintain proper cable separation from high-voltage power lines.
After wiring, apply power and test the sensor. Use the indicator LED (if present) to verify operation. Adjust the sensing distance and sensitivity potentiometers as needed. Ensure the target object is within the specified sensing range and has adequate reflectivity. Avoid highly reflective backgrounds that could cause false triggers.
Common wiring mistakes include incorrect voltage application, mismatched output types, and loose connections. Double-check all connections against the wiring diagram. Use appropriate wire gauges and secure terminals properly. For safety, always disconnect power before making or modifying connections.
Proper wiring ensures optimal performance and extends the sensor's lifespan. Regular maintenance, such as cleaning the lens and checking connections, is also important. By following these guidelines, you can integrate diffuse reflective proximity sensors effectively into your automation systems.