Proximity sensors: inductive, capacitive, optical
Inductive (eddy-current), capacitive and photoelectric proximity sensors — principles, target suitability and set-up — with capacitive-gap, variable-reluctance and time-of-flight examples.
Drafted with Aria, reviewed by the AiCanCode.org team. Spotted an error? Use Give Feedback at the bottom of the page.
Why it matters
Proximity sensors are the eyes of automated machines: they confirm a part is in the fixture, a cylinder has extended, or a guard is closed, without touching anything. Choosing the wrong type — an inductive sensor for a plastic part, or a diffuse optical sensor for a glass bottle — is one of the most common commissioning failures on a production line.
Key ideas
Most industrial proximity sensors are switches: they give an ON/OFF output (PNP or NPN transistor, or relay) when a target comes within the switching distance. Analogue versions give a signal proportional to gap.
Inductive proximity sensors
- An LC oscillator drives a coil behind the sensing face, producing a high-frequency alternating magnetic field. A metal target in the field carries eddy currents, which draw energy from the oscillator and reduce its amplitude; a trigger circuit switches the output when the amplitude falls below a threshold.
- They detect only conductive metals. Rated sensing distance S_n is quoted for a standard mild-steel target; non-ferrous metals (aluminium, copper, brass) are detected at a reduced distance given by a correction factor from the manufacturer's data sheet.
- Hysteresis (a few % of S_n) between switch-on and switch-off avoids chatter. Shielded (flush) types have shorter range but can be mounted in metal; unshielded types reach further.
- Rugged, immune to dirt, oil and light; typical S_n of 1–40 mm; switching frequencies of hundreds of hertz to kilohertz.
- A related type is the variable-reluctance (inductive displacement) sensor: moving a ferromagnetic target changes the air gap in a magnetic circuit, and therefore the coil's inductance.
Capacitive proximity sensors
- The sensing electrode and an earth electrode form a capacitor whose fringe field projects in front of the face. Any object with permittivity higher than air — metal, plastic, wood, water, grain — raises the capacitance and changes the oscillator behaviour.
- They detect metals and non-metals and can sense a liquid level through a plastic tank wall. The response depends strongly on the target's relative permittivity εr and size, so they need a sensitivity potentiometer and are affected by humidity, condensation and dirt on the face.
- Precision capacitive displacement sensors use a parallel-plate model where the gap d or overlap area A changes.
Optical (photoelectric) sensors
- An LED emitter (infrared, red or laser) and a phototransistor or photodiode receiver; the light is pulsed/modulated so the receiver can reject ambient light.
- Through-beam: emitter and receiver face each other; the target breaks the beam. Longest range (tens of metres), most reliable.
- Retro-reflective: emitter and receiver in one housing, beam bounced off a reflector; the target interrupts it. Polarised versions avoid false triggering by shiny targets.
- Diffuse: light reflects off the target itself back to the receiver; shortest range and depends on target colour and finish. Background-suppression types use triangulation to ignore distant objects.
- Transparent objects (glass, PET film) are hard for diffuse sensors; special clear-object retro-reflective sensors are used. Dust and fogged lenses reduce signal margin.
Others: ultrasonic sensors (time of flight, any material, unaffected by colour), Hall-effect and reed switches (magnet targets, e.g. cylinder piston position).
Formulas
C = ε₀·ε_r·A / d
- C: capacitance (F), ε₀ = 8.854 × 10⁻¹² F/m, ε_r: relative permittivity (dimensionless), A: plate overlap area (m²), d: gap (m). Parallel plates with gap small compared with plate size (fringing neglected).
dC/dd = −ε₀·ε_r·A / d²
- Sensitivity to gap (F/m): the sensor is nonlinear in d, more sensitive at small gaps; it is linear if area changes instead.
L = N² / ℛ ; ℛ ≈ 2g / (μ₀·A)
- L: inductance (H), N: turns, ℛ: reluctance (A-turn/Wb, i.e. H⁻¹), g: each air gap (m), A: pole area (m²), μ₀ = 4π × 10⁻⁷ H/m. Variable-reluctance sensor when the iron path reluctance is negligible compared with the two air gaps.
S_r = k·S_n
- S_r: effective sensing distance for a given target (mm), k: material correction factor (from manufacturer's data), S_n: rated distance for mild steel (mm).
d = v·t / 2 (ultrasonic or optical time of flight)
- v: wave speed (m/s, about 343 m/s for sound in air at 20 °C), t: echo time (s).
Worked examples
Example 1 (standard) — capacitive gap sensor. An air-gap capacitive sensor has electrode area 1 cm² and gap 0.5 mm. Find the capacitance, and its change when the target moves 0.1 mm closer.
- A = 1 cm² = 1 × 10⁻⁴ m²; d₁ = 0.5 × 10⁻³ m; ε_r = 1.
C = ε₀·ε_r·A / d: C₁ = 8.854 × 10⁻¹² × 10⁻⁴ / 0.5 × 10⁻³ = 1.771 × 10⁻¹² F = 1.771 pF.- d₂ = 0.4 mm: C₂ = 8.854 × 10⁻¹⁶ / 0.4 × 10⁻³ = 2.214 pF.
- ΔC = 2.214 − 1.771 = 0.443 pF.
- Answer: C = 1.77 pF; ΔC ≈ +0.44 pF (a 25 % rise for a 20 % gap reduction — note the nonlinearity).
Example 2 (GATE level) — variable-reluctance sensor. A C-shaped iron core with a 500-turn coil faces a moving iron armature across two equal air gaps. Pole area is 1 cm². Neglect iron reluctance and fringing. Find the coil inductance at gap g = 1.0 mm and g = 0.8 mm.
- Reluctance of two gaps:
ℛ = 2g / (μ₀·A). - g = 1.0 mm: ℛ = 2 × 10⁻³ / (4π × 10⁻⁷ × 10⁻⁴) = 2 × 10⁻³ / 1.2566 × 10⁻¹⁰ = 1.592 × 10⁷ H⁻¹.
L = N²/ℛ= 250 000 / 1.592 × 10⁷ = 0.01571 H = 15.7 mH.- g = 0.8 mm: ℛ = 1.273 × 10⁷ H⁻¹; L = 250 000 / 1.273 × 10⁷ = 19.6 mH.
- Answer: L ≈ 15.7 mH at 1.0 mm and 19.6 mH at 0.8 mm (L ∝ 1/g, so a 20 % gap cut raises L by 25 %).
Example 3 (quick) — ultrasonic range. An echo returns after 2.9 ms in air at 20 °C. d = 343 × 0.0029 / 2 = 0.497 m.
Common mistakes
- Using an inductive sensor on plastic, wood or liquid — it sees only metals.
- Assuming the rated sensing distance applies to aluminium or brass; apply the data-sheet correction factor.
- Forgetting ε_r, or putting the gap in mm with area in m² — keep everything in SI before computing pF.
- Expecting a capacitive sensor's output to be linear in gap; C ∝ 1/d.
- Choosing a diffuse optical sensor for transparent or very dark targets; use through-beam or clear-object retro-reflective types.
- Forgetting the factor 2 in time-of-flight distance (the wave goes out and back).
For GATE ME
Expect MCQs on which sensor suits which target (metal, plastic, liquid, transparent), on eddy-current and capacitance principles, and on through-beam vs retro-reflective vs diffuse optics. NAT items use C = ε₀ε_rA/d (often with a gap change), L = N²/ℛ with air gaps, and time-of-flight distance. Practise unit handling in pF and mH.
Quick check
- Why does a metal target reduce the oscillation amplitude in an inductive sensor?
- Which sensor would you use to detect water level through a plastic tank wall?
- If the gap of a parallel-plate capacitive sensor is halved, what happens to C?
- Which optical arrangement gives the longest range?
- Why do inductive sensors have switching hysteresis?
Answers: 1. Eddy currents induced in the target absorb energy from the oscillator's field. 2. Capacitive. 3. It doubles. 4. Through-beam. 5. To prevent output chatter when the target sits near the switching point.
Interview questions
All Sensors, Actuators and Electric Drives interview questionsTry answering each one aloud before you open it.
1.What is an inductive proximity sensor and how does it work?Concept
An inductive proximity sensor is a type of sensor that detects metallic objects without physical contact. It works by generating an electromagnetic field using an oscillator. When a metallic object enters this field, it induces eddy currents in the object, which in turn reduces the amplitude of the oscillations. The sensor detects this change and triggers an output signal.
2.Explain the working principle of a capacitive proximity sensor.Concept
The sensing face carries an active electrode and an earth electrode whose fringe electric field projects in front of the sensor. Any object with a permittivity higher than air, metallic or not, increases the capacitance of this field, which changes the oscillator's behaviour and switches the output. Because the response depends on the target's relative permittivity and size, a sensitivity adjustment is provided, and humidity or dirt on the face can cause false triggering.
3.Describe how an optical proximity sensor functions.Concept
An optical proximity sensor uses light to detect the presence of an object. It typically consists of a light source, such as an LED, and a photodetector. When an object comes close, it reflects the emitted light back to the photodetector, which then generates an electrical signal indicating the presence of the object. Optical sensors can detect a wide range of materials and are often used in applications requiring precise detection.
4.Why are inductive proximity sensors preferred in industrial environments?Application
Inductive proximity sensors are preferred in industrial environments because they are robust and reliable in detecting metallic objects without physical contact. They are resistant to dirt, dust, and moisture, making them suitable for harsh conditions. Additionally, they have a long lifespan and require minimal maintenance, which is ideal for continuous industrial operations.
5.What are the limitations of capacitive proximity sensors?Application
They respond to almost anything with permittivity above air, so moisture, condensation, dust build-up or a nearby hand can cause false switching. The sensing distance depends on the target's relative permittivity and size, so it must be set up for each application with the sensitivity adjustment. They are slower than inductive sensors and less suitable in wet, dirty environments where an inductive sensor could do the job on a metal target.
6.In what applications would you use an optical proximity sensor over other types?Application
Use a photoelectric sensor when the target is non-metallic, when the required range is beyond what inductive or capacitive sensors give (through-beam types reach tens of metres), or when fast response is needed, such as counting parts on a conveyor. The mode is chosen for the target: through-beam for reliability and range, retro-reflective for single-side mounting, diffuse or background-suppression for short range. Transparent objects need through-beam or special clear-object retro-reflective sensors, because a diffuse sensor gets little reflected light from glass or film.
7.What happens if an inductive proximity sensor is used to detect a non-metallic object?Application
If an inductive proximity sensor is used to detect a non-metallic object, it will not function effectively. Inductive sensors rely on the generation of eddy currents in metallic objects to detect their presence. Non-metallic objects do not induce these currents, so the sensor will not register their presence, leading to false negatives.
8.Calculate the change in capacitance if a capacitive sensor with an initial capacitance of 10 pF detects an object that increases the capacitance by 20%.Numerical
Initial capacitance, C₀ = 10 pF. The increase in capacitance is 20% of C₀. Change in capacitance, ΔC = 0.20 × 10 pF = 2 pF. Therefore, the new capacitance is C = C₀ + ΔC = 10 pF + 2 pF = 12 pF.
9.How does the presence of dust affect the performance of optical proximity sensors?Application
Dust can affect the performance of optical proximity sensors by obstructing the light path between the emitter and the detector. This can lead to false readings or reduced sensitivity, as the sensor may not receive enough reflected light to detect an object accurately. Regular cleaning and maintenance are necessary to ensure optimal performance in dusty environments.
Finished this topic? Mark it so your progress, study plan and readiness keep up.
Stuck on something here?