Proximity Sensor Diagram

Proximity Sensor Diagram — circuit diagram showing component connections+12V/24V SupplyProximity SensorPull-up RARDUINOUNOMCU / ReaderIndicatorProximity Sensor Circuit
Proximity Sensor Diagram — interactive diagram. Open it in the editor to customise components and wiring.

This is a free printable proximity sensor diagram: download the diagram as SVG or open it and print to paper or PDF.

Proximity sensors detect objects without physical contact by generating an electromagnetic or electrostatic field — wiring them correctly requires understanding whether the output is NPN (sinking) or PNP (sourcing).

Proximity sensors are solid-state devices that detect the presence of an object within their sensing range without physical contact. The two dominant technologies are inductive and capacitive.

Inductive proximity sensors generate a high-frequency oscillating magnetic field from a coil inside their sensing face. When a metal object enters this field, eddy currents are induced in the metal, damping the oscillation. The internal circuit detects the amplitude drop and switches the output. Inductive sensors detect ferrous and non-ferrous metals — detection range is longer for ferrous (steel) than for non-ferrous (aluminium, copper), and most datasheets specify range for a standard steel target. They cannot detect non-metallic objects.

Capacitive proximity sensors generate an electrostatic field between internal electrodes. Any object with a different dielectric constant from air (including liquids, granules, glass, plastics, and wood) entering the field changes the capacitance, triggering the output. Capacitive sensors can detect both metallic and non-metallic targets, making them essential for level detection of liquids in non-metallic tanks or granular materials in hoppers.

Most industrial proximity sensors use a three-wire DC connection: - Brown wire: supply positive (Vcc, typically 10–30 V DC) - Blue wire: supply negative (0 V / GND) - Black wire: signal output

The signal output type is the most critical wiring consideration:

NPN (sinking) output: the black output wire connects internally to the 0 V rail when the sensor is activated. The load is connected between Vcc and the output — the sensor 'sinks' current from the load to GND. PLCs with NPN-compatible inputs source current into the input terminal; this is common in Asian manufacturing equipment.

PNP (sourcing) output: the black output wire connects internally to Vcc when activated. The load is connected between the output and GND — the sensor 'sources' current to the load. PLCs with PNP-compatible inputs pull current from the input terminal to 0 V; this is common in European industrial equipment.

Mismatching NPN/PNP sensor output to a PLC input type results in no output being detected, or in some cases a brief partial switching — not a destructive fault, but a persistent commissioning problem. Some PLC input modules support both types; check the module specification before ordering sensors.

Normally Open (NO) vs Normally Closed (NC): most sensors are available in NO form (output switches ON when object detected) or NC form (output switches OFF when object detected). NC configurations are fail-safe in safety applications — a broken wire or lost power causes the output to de-energise, triggering a response from the controller.

How to wire proximity sensor diagram

  1. Identify the sensor type: inductive or capacitive, NPN or PNP, NO or NC Read the sensor body markings and datasheet before wiring. Most sensors have the output type (NPN/PNP) and contact form (NO/NC) marked on the barrel or label. Verify the supply voltage range (typically 10–30 V DC) matches your power supply. Confirm the PLC input type (source or sink) matches the sensor output type.
  2. Prepare the power supply Use a regulated 24 V DC (or other voltage within the sensor's rated range) power supply with adequate current capacity. Proximity sensors draw 10–200 mA depending on type and load. Ensure the power supply 0 V rail is properly earthed as per the installation's electrical requirements.
  3. Connect the brown wire to the positive supply rail (+Vcc) The brown conductor is universally the positive supply connection in IEC-standard proximity sensors. Use a terminal block or appropriately rated connector. Do not exceed the maximum rated supply voltage — overvoltage destroys the internal transistor output stage.
  4. Connect the blue wire to the supply negative (0 V / GND) The blue conductor connects to the negative supply rail. For NPN sensors, this is also the internal switching rail — the load current returns through this conductor. Ensure adequate wire cross-section for the load current, particularly if multiple sensors share a single return conductor.
  5. Connect the black output wire to the load or PLC input For NPN: connect one end of the load to +Vcc and the other end to the black output wire. The sensor sinks current from the load to GND when active. For PNP: connect the black output wire to one end of the load, and the other end of the load to GND. The sensor sources current to the load when active. PLC inputs typically incorporate the load function internally.
  6. Set the sensing range (capacitive sensors only) Capacitive sensors have a sensitivity (gain) trimmer potentiometer accessible from the rear or side. With the sensor mounted in its final position (but no target present), rotate the trimmer fully counter-clockwise (minimum sensitivity). Then slowly increase sensitivity until the output indicator LED just illuminates. Finally, back the trimmer off until the LED extinguishes — this is the operating set-point. Confirm with the target that the sensor reliably detects at the required range.
  7. Verify operation using the indicator LED and a multi-meter or PLC input monitor Approach a suitable target object toward the sensing face. The indicator LED on the sensor body should illuminate and the PLC input or relay coil should energise. Remove the target and confirm the output resets. Measure the output voltage with a multi-meter: for NPN active, measure close to 0 V between output and GND; for PNP active, measure close to Vcc between output and GND.

Specifications

Supply voltage (typical DC)10–30 V DC (most 3-wire industrial sensors)
Quiescent current (no load)Typically 10–20 mA
Max load current (output)100–300 mA (varies by sensor; check datasheet)
Voltage drop across output (active, NPN or PNP)< 2 V (typically 0.5–1.5 V at rated load)
Inductive sensor detection range (M12, steel target)Typically 2–4 mm (flush); 4–8 mm (non-flush)
Capacitive sensor detection range (M18, water target)Typically 2–15 mm depending on sensor model
IP rating (standard industrial)IP67 (immersion-proof); IP69K available for washdown environments
Applicable standardsIEC 60947-5-2 (proximity switch standard), IEC 62061 / ISO 13849 (safety applications)

Safety warnings

Tools needed

Common mistakes

Troubleshooting

Sensor LED illuminates but the PLC input does not register
Cause: NPN/PNP mismatch between sensor output and PLC input type — the output transistor is switching but in the wrong direction for the PLC input's internal circuitry. Fix: Verify the PLC input module type (source or sink). Replace the sensor with the correct output type, or use an interposing relay between the sensor output and the PLC input to make the circuit polarity-independent.
Sensor output chatters (switches rapidly on and off) when the target is at the detection boundary
Cause: The target is at the hysteresis boundary of the sensor — slightly within the sensing range on the approach but outside on the release. Target vibration or the hysteresis band is too narrow for the application. Fix: Reduce the sensor-to-target gap so the target is clearly within the rated sensing range, not at the boundary. If the target cannot be repositioned, use a sensor with a larger sensing range relative to the required detection distance.
Capacitive sensor triggers continuously even with no target present
Cause: Sensitivity trimmer is set too high, or a nearby conductive or dielectric object (mounting bracket, nearby pipe, residual liquid) is within the sensor's field. Fix: Reduce the sensitivity trimmer until the false triggering stops. If the target object can still be detected reliably, the setting is correct. If reducing sensitivity prevents detection of the actual target, the sensor must be repositioned farther from background objects.

Frequently asked questions

What is the difference between an NPN and a PNP proximity sensor output?

An NPN (sinking) sensor connects its output to GND (0 V) when active — the load is wired between the supply positive and the output pin. A PNP (sourcing) sensor connects its output to supply positive (Vcc) when active — the load is wired between the output pin and GND. Matching the output type to the PLC or controller input type is essential for correct operation.

Can an inductive proximity sensor detect aluminium or copper, or only steel?

Inductive sensors detect all metals by inducing eddy currents. However, the sensing range for non-ferrous metals (aluminium, copper, brass) is reduced compared to standard ferrous (steel) targets — typically 30–70% of the rated range. Datasheets specify the rated sensing distance for a standard steel target square; a correction factor is then applied for other metals.

Why does my proximity sensor output flicker even when no target is present?

Likely causes are electromagnetic interference from nearby inverter drives or switching power supplies, a supply voltage outside the sensor's rated range, or a capacitive sensor with its sensitivity trimmer set too high — causing it to detect the tank wall or mounting bracket. Adjust the sensitivity trimmer, add a ferrite bead to the supply lead, or reposition the sensor away from interference sources.

What does 'flush' versus 'non-flush' mounting mean for an inductive proximity sensor?

A flush-mountable (shielded) sensor can be installed with its sensing face level with the surrounding metal mounting surface without the metal causing false triggering — the shielding constrains the field forward. A non-flush (unshielded) sensor must be surrounded by at least the specified clear zone of non-metallic material; metal flush with the sensing face will reduce or eliminate the sensing range.

How do I wire a 4-wire proximity sensor compared to a 3-wire type?

A 4-wire sensor has two output wires providing both NO and NC outputs simultaneously from the same sensor — brown (+Vcc), blue (0 V), black (NO output), and white (NC output). Wire only the output you need to the controller; leave the unused output disconnected. Never connect both outputs to the same input, as this would short NO and NC together.

Related diagrams

Free electrical calculators

Edit this diagram free in the online editor