Inductive proximity sensors are ubiquitous in industrial automation, offering non-contact detection of metallic objects. Their reliability, long service life, and resistance to harsh environments make them a cornerstone of modern control systems. However, incorrect wiring remains a common source of malfunction. This guide details the correct wiring methodologies for 2-wire, 3-wire, and 4-wire DC inductive proximity sensors, the most common types in industrial applications, ensuring optimal performance and system safety.
Understanding the Core Principle and Key Specifications

Before connecting wires, understanding the operating principle is crucial. An inductive proximity sensor generates an oscillating electromagnetic field from its face. When a metallic target enters this field, eddy currents are induced in the target, causing a change in the oscillation amplitude. This change is detected by the sensor's circuitry, which triggers a switching action. The critical specifications for wiring are the sensor's operating voltage (e.g., 10-30V DC) and its output configuration: Normally Open (NO), Normally Closed (NC), or switching. Furthermore, the type of output transistor—PNP (sourcing) or NPN (sinking)—dictates the wiring topology. Always consult the manufacturer's datasheet, which provides the definitive wiring diagram and specifications.

Wiring 2-Wire DC Sensors
The 2-wire sensor is the simplest to connect, functionally similar to a mechanical switch. It has two wires: typically brown (or red) for positive/L+ and blue (or black) for negative/L- and load. It is connected in series with the load (e.g., a PLC input, relay coil) and the power supply.
Connection Procedure: Connect the brown wire to the positive terminal of the DC power supply. Connect the blue wire to one terminal of the load. Connect the other terminal of the load to the negative terminal of the DC power supply, completing the series circuit.
Key Consideration: 2-wire sensors have a residual current (leakage current) when in the "off" state and a voltage drop when "on." This residual current must be below the PLC input's "OFF" current threshold, or it may cause a false signal. A bleeder resistor may be required across the PLC input to shunt this leakage current.
Wiring 3-Wire DC Sensors
The 3-wire sensor is the industry standard, offering superior performance with separate power and switching output wires. It features three wires: brown (L+, V+), blue (L-, 0V), and a black (or white) output wire. The critical distinction is between PNP and NPN types.
PNP (Sourcing) Sensor Wiring: The output switch connects the load to the positive supply. Connect brown to DC+, blue to DC-. Connect the black (output) wire to one terminal of the load. Connect the other terminal of the load to DC- (blue). When activated, the PNP sensor "sources" positive current to the load.
NPN (Sinking) Sensor Wiring: The output switch connects the load to the negative supply. Connect brown to DC+, blue to DC-. Connect the black (output) wire to one terminal of the load. Connect the other terminal of the load to DC+ (brown). When activated, the NPN sensor "sinks" current from the load to ground.
Load Compatibility: A PNP sensor is typically used to switch a PLC input card that is wired to common negative. An NPN sensor is used for a PLC input card wired to common positive. Mismatching will result in non-operation.
Wiring 4-Wire DC Sensors (Dual Output)
A 4-wire sensor combines both a PNP (NO or NC) and an NPN (NO or NC) output in one housing, providing maximum wiring flexibility. It has four wires: brown (V+), blue (0V), a black wire (often PNP output), and a white wire (often NPN output). The user can select either the sourcing (PNP) or sinking (NPN) output based on the control system's requirements, using only two of the four output wires at a time. Always refer to the specific datasheet, as color coding can vary.
Best Practices and Troubleshooting
1. Power Supply: Use a regulated, stabilized DC power supply within the sensor's rated voltage range. Ripple and noise can cause erratic switching.
2. Load Current: Ensure the connected load (relay, PLC input, lamp) does not exceed the sensor's maximum switching current.
3. Short-Circuit Protection: Many modern sensors have built-in protection, but external fusing is still a recommended safety practice.