🚧 Under construction — VoTechWorks is being built. A free tech program — complimentary, as our commitment to get America working.
voTechWorksGrade 13 · a vocational technology learning center, by urbanicity
newSchoolWorks.com › VoTechWorks › Manufacturing & Marine › Robotics / Mechatronics › Industrial Sensors and Signal Conditioning for Mechatronics › Lesson 2
MFG-MECH15-04 · Lesson 2 · 14.5 clock hours · lab

Inductive and Capacitive Proximity Sensors

Objective. Students wire, adjust, and verify NPN/PNP inductive and capacitive proximity sensors to a PLC discrete input module and distinguish correct sensing range from false triggering.

⚠ Pending professional review

This lesson, its worked examples and its practice questions has not yet been verified by a licensed engineer or certified journey-level tradesperson or by a certification or approval body. It is a study draft and may contain errors. Do not use it as instructions for work on a job site or on live equipment. Always follow your instructor, your supervising professional, and current official references and regulations.

VoTechWorks program approval and accreditation are still in progress. Credentials are issued only by the certifying bodies named in each program, after their own exams.

Inductive and Capacitive Proximity Sensors

Proximity sensors detect the presence or absence of a target without physical contact. In mechatronics and robotics, they are among the most common discrete input devices feeding a PLC. This lesson covers two types: inductive and capacitive proximity sensors.

How Inductive Proximity Sensors Work

An inductive sensor uses an internal oscillator to generate an electromagnetic field at the face of the sensor. When a metallic target enters the sensing field, eddy currents are induced in the target, loading the oscillator and reducing its amplitude. The internal circuitry detects this change and switches the output. Inductive sensors respond only to electrically conductive materials — steel, aluminum, copper, and brass, for example. They are immune to dust, moisture, and most non-metallic objects, making them well suited for detecting metal parts on a conveyor or confirming robot end-of-arm tool position.

The nominal sensing distance (Sn) is published in the datasheet for a standard mild-steel target. Different metals return different effective ranges: aluminum and copper typically reduce the effective sensing distance compared to steel.

How Capacitive Proximity Sensors Work

A capacitive sensor uses an internal oscillator with an electrode that forms one plate of a capacitor. When any material — metal, plastic, glass, liquid, granules, or powder — comes close enough, it changes the capacitance of the circuit, triggering the output. This makes capacitive sensors useful for detecting non-metallic targets and even materials through non-metallic container walls (for example, detecting liquid level inside a plastic tank).

Most capacitive sensors include an external sensitivity potentiometer that adjusts the trigger threshold. Turning the pot increases or decreases how much capacitance change is needed to switch the output. This lets you tune out background materials and reliably detect only the target of interest. Always document your final pot setting so the sensor can be re-tuned after replacement.

NPN and PNP Output Types

Three-wire DC proximity sensors are either NPN (current sinking) or PNP (current sourcing).

The three wires on most sensors follow this color convention (IEC 60947-5-2): Brown = +24 VDC, Blue = 0 V (common), Black = signal output. Always verify with the datasheet before wiring.

Wiring Procedure

Before any wiring, apply lockout/tagout (LOTO) per OSHA 29 CFR 1910.147. De-energize the 24 VDC supply, lock it out, and verify absence of voltage with a calibrated multimeter before connecting or disconnecting wires. Even low-voltage DC can damage components if connected incorrectly.

1. With power off and locked out, connect Brown to +24 V.

2. Connect Blue to 0 V (DC common).

3. Connect Black (signal) to the PLC discrete input terminal.

4. Connect the PLC input module common to 0 V (NPN wiring) or to +24 V (PNP wiring), depending on module type.

5. Have the instructor verify wiring before removing the LOTO lock.

6. Energize and test with a target.

Use a digital multimeter in DC voltage mode to confirm supply voltage between Brown and Blue wires (should read ~24 VDC). With the target present and the output active, measure voltage on the Black wire: for a PNP output it should read close to +24 V; for an NPN output it should read close to 0 V.

Sensing Distance and False Triggering

The rated operating distance (Sr) is the guaranteed sensing range under specified conditions. Always operate at 75–80% of Sn to maintain a reliable switching margin and avoid false triggering from vibration or mounting tolerance. False triggering occurs when the sensor switches without a valid target — commonly caused by sensitivity set too high (capacitive), EMI from nearby drives or contactors, or a target moving too fast through the field. Document your measured switching distances in the data table and compare to the datasheet to confirm the sensor is operating within specification.

Safety Summary

Key terms8

Inductive proximity sensorA non-contact sensor that detects electrically conductive metallic targets by measuring changes in an internal electromagnetic oscillator field.
Capacitive proximity sensorA non-contact sensor that detects any material — metal, plastic, liquid, or granules — by measuring changes in capacitance at its sensing face.
NPN (sinking) outputA sensor output configuration in which the output transistor pulls the signal wire to the negative (0 V) rail when active; pairs with a sourcing PLC input module.
PNP (sourcing) outputA sensor output configuration in which the output transistor pulls the signal wire to the positive supply rail when active; pairs with a sinking PLC input module.
Nominal sensing distance (Sn)The rated detection range published by the manufacturer for a standard target material and conditions; the working distance should be set to 75–80% of Sn for reliable operation.
Sensitivity potentiometerAn adjustable control on a capacitive sensor that sets the detection threshold; used to tune the sensor to respond to the desired target while ignoring background materials.
Lockout/tagout (LOTO)The energy-control procedure required by OSHA 29 CFR 1910.147 to isolate and de-energize equipment before wiring or maintenance to prevent accidental energization.
False triggeringAn unwanted sensor output switch caused by excessive sensitivity, vibration, EMI, or a non-target material entering the sensing field.

Worked examples4

1. An inductive sensor datasheet lists Sn = 8 mm for a mild-steel target. What is the maximum working distance you should use to ensure reliable operation?
  1. Identify the recommended working margin: operate at no more than 80% of Sn to maintain a reliable switching margin.
  2. Calculate: 8 mm × 0.80 = 6.4 mm.
Answer: Set the target-to-sensor gap to 6.4 mm or less for reliable detection.
2. You measure +24.2 V between the Brown and Blue wires of a PNP sensor with the target absent (output off). With a steel target held at 5 mm, you measure the Black wire voltage. What value do you expect, and why?
  1. A PNP sensor sources current when active: its output transistor connects the Black wire to the positive supply rail.
  2. With the target present and the output active, the Black wire should be pulled close to the supply voltage.
  3. Expected reading: approximately +24.2 V (minus a small transistor saturation drop, typically < 1 V).
Answer: Approximately +23 to +24 V DC on the Black wire, indicating the PNP output is conducting.
3. A capacitive sensor datasheet gives a load current of 200 mA maximum. You measure 18 mA flowing through the output when the PLC input is active. Is this within spec? Show the comparison.
  1. Rated maximum load current from datasheet: 200 mA.
  2. Measured load current: 18 mA.
  3. Compare: 18 mA < 200 mA.
  4. The measured current is well within the rated maximum — no risk of overloading the output transistor.
Answer: Yes, 18 mA is within specification; the sensor output is not overloaded.
4. You are scaling a 4-20 mA analog signal from a distance sensor to engineering units (0–100 mm). At a measured current of 12 mA, what distance does the sensor report?
  1. Determine the current span: 20 mA − 4 mA = 16 mA represents the full 100 mm span.
  2. Find how far 12 mA is above the zero-scale current: 12 mA − 4 mA = 8 mA above zero.
  3. Calculate the fraction of full span: 8 mA ÷ 16 mA = 0.50 (50%).
  4. Apply to engineering unit span: 0.50 × 100 mm = 50 mm.
Answer: 12 mA corresponds to 50 mm.
In class: Instructor demo: wire a 3-wire NPN inductive sensor to a 24 VDC PLC input; use a multimeter to verify supply voltage, load current, and output state with a metal target at measured distances. · Lab activity: each student wires one inductive (NPN) and one capacitive (PNP) sensor using a wiring diagram, powers up under instructor supervision after LOTO verification, and records the sensing distance for three target materials in a data table. · Comparison exercise: students adjust the capacitive sensor sensitivity pot to detect a plastic bottle filled with water and then repeat with an empty bottle; document threshold settings and discuss application relevance.
Materials: Inductive proximity sensors (NPN and PNP, M12 and M18), capacitive proximity sensors, 24 VDC power supply, PLC training panel (Allen-Bradley or Siemens), digital multimeter, wire strippers, screwdrivers, metal/plastic/glass targets, lab worksheet.
Check: Lab worksheet with wiring diagram, data table, and written explanation of NPN vs. PNP sourcing/sinking; pass = correct wiring verified by instructor and 80% of data points within sensor datasheet specification.

Practice check8

Answer each question, then check it. Nothing is recorded; this is your own practice.

Siemens SMSCP L1 — Electrical Components and Sensors
1. An inductive proximity sensor fails to detect an aluminum target at 6 mm even though the steel-target Sn is 8 mm. What is the most likely cause?
FANUC CERT / PMMI — Safety
2. Which OSHA standard requires you to lock out and verify absence of voltage on the 24 VDC supply before wiring a proximity sensor to the PLC input module?
PMMI Mechatronics — Industrial Electricity / PLCs
3. A PLC discrete input module is described as a 'sinking input' module. Which sensor output type should you select to wire it correctly?
Siemens SMSCP L1 — Electrical Components and Sensors
4. You want to detect whether a plastic bottle on a conveyor is full of water or empty without opening the bottle. Which sensor type is best suited for this application?
PMMI Mechatronics — Industrial Electricity
5. After wiring a 3-wire NPN sensor, you measure approximately +24 V on the Black (signal) wire with no target present. What does this indicate?
PMMI Mechatronics — Industrial Electricity / Mechanical Components
6. A capacitive sensor sensitivity pot is turned fully clockwise (maximum sensitivity) and the PLC input stays ON even with no target present. The best corrective action is:
PMMI Mechatronics — Mechanical Components
7. An inductive sensor has Sn = 10 mm. According to good practice, what is the recommended maximum working distance to ensure reliable, repeatable switching?
Siemens SMSCP L1 — Electrical Components
8. Which IEC wire color on a standard 3-wire DC proximity sensor indicates the 0 V (common) connection?
Record this lesson on my transcript. Sign in with your key and enrollment email to record lessons (enroll free if you have no key). This page stays open to read and practise.