Proximity sensors are indispensable components in modern industrial automation, providing non-contact detection of metallic or non-metallic objects. Proper wiring is crucial for ensuring reliable operation, safety, and longevity of the sensor and the connected control system. This guide details the standard procedures for wiring common types of 2-wire, 3-wire, and 4-wire DC proximity sensors.
Understanding Proximity Sensor Types and Outputs
Before wiring, identify your sensor's type, operating voltage, and output configuration. The most common power source is DC, typically 10-30V DC. The output can be NPN (sinking) or PNP (sourcing). An NPN sensor switches the negative (0V) line to the load, while a PNP sensor switches the positive (+V) line. The load (e.g., a PLC input, relay coil) must be compatible. Always consult the manufacturer's datasheet for the specific model.
General Safety and Preparation Precautions

1. Power Off: Ensure all power to the circuit and control panel is LOCKED OUT and TAGGED OUT (LOTO procedure).

2. Verify Specifications: Confirm the sensor's voltage rating, current capacity, and output type match your power supply and load requirements.
3. Gather Tools: You will typically need wire strippers, crimping tools, ferrules, screwdrivers, and a multimeter for verification.

4. Check Wiring Diagram: Refer to the diagram printed on the sensor body or in its documentation. The standard color coding for 3-wire DC sensors is:
Brown: Positive Supply (+V)
Blue: Negative Supply / Common (0V)
Black: Output Signal (Switched wire)
Wiring a 3-Wire DC Proximity Sensor
This is the most prevalent configuration.
Step 1: Connect Power. Connect the Brown wire to the positive DC supply terminal (+V, e.g., +24V). Connect the Blue wire to the negative/0V DC supply terminal.
Step 2: Connect the Output. Connect the Black output wire to one terminal of your load (e.g., PLC digital input X0).
Step 3: Complete the Load Circuit.
For a PNP (Sourcing) Sensor: The other terminal of the load must be connected to the negative/0V supply. The PNP sensor will source current to the load when activated.
For an NPN (Sinking) Sensor: The other terminal of the load must be connected to the positive (+V) supply. The NPN sensor will sink current from the load to 0V when activated.
Step 4: Shield Connection (if present). If the cable has a bare drain/shield wire, connect it to a functional earth (FE) or ground terminal at the control panel end only to reduce electrical noise. Do not connect it at the sensor end.
Wiring a 2-Wire DC Proximity Sensor
These sensors act like a switch in series with the power line. They are simpler but have a small residual leakage current.
Procedure: Connect one wire to the positive DC supply. Connect the other wire to one side of the load. Connect the other side of the load to the negative/0V supply. Polarity is often not critical, but some models require correct polarity; check the datasheet. Ensure the load draws enough current to keep the sensor operational but stays within its maximum rating.
Wiring a 4-Wire DC Proximity Sensor
These sensors provide two complementary outputs (e.g., one PNP-NO and one PNP-NC, or one NPN and one PNP). They typically have Brown (+V), Blue (0V), a Black wire (Output 1), and a White wire (Output 2).
Procedure: Connect Brown and Blue to the power supply as usual. Connect the Black and White output wires to their respective loads. The switching logic (NO/NC) and type (PNP/NPN) for each output are defined in the datasheet. Wire the loads accordingly.
Testing and Commissioning
1. Visual Inspection: Double-check all connections for tightness and correct routing.
2. Continuity/Short Check: With power still off, use a multimeter to check for unintended shorts between wires.
3. Apply Power: Restore power to the control system.
4. Verify Operation: Use the multimeter to measure voltage. For a PNP sensor, the Black wire should read close to 0V