Proximity sensor

On this page 7

A proximity sensor is a sensor that detects the presence or nearness of an object without physical contact, usually switching an output when the object enters a defined sensing range. Among sensors in robotics, proximity sensors are the simplest and most numerous: they confirm that a part has arrived, that a gripper is open, that an axis has reached its home position or that something is too close to a moving machine.

Most proximity sensors give a binary output (object present or absent), while some provide an analog value proportional to distance. They are distinct from full range sensors such as LiDAR or depth cameras, which measure distances across a scene rather than answering a single near or not near question.

How proximity sensors detect objects

Every proximity sensor emits or monitors a field or signal and reacts when a target changes it. An inductive sensor generates a high-frequency electromagnetic field that loses energy through eddy currents when metal approaches. A capacitive sensor measures a change in capacitance caused by any material with a different dielectric constant, including plastic, wood, liquids and the human body.

Other principles use waves or magnets. Photoelectric sensors emit infrared or visible light and detect its reflection or interruption. Ultrasonic sensors measure the echo of sound pulses. Magnetic sensors, using reed contacts or the Hall effect, react to a permanent magnet, which is how piston positions in pneumatic cylinders are usually detected.

TypeDetectsTypical sensing range
InductiveMetals onlyAbout 1 mm to 60 mm
CapacitiveMost solids and liquidsAbout 1 mm to 40 mm
PhotoelectricMost opaque objectsMillimeters to tens of meters
UltrasonicSolids and liquids, regardless of colorCentimeters to several meters
MagneticMagnets or magnetized partsUp to tens of millimeters
Optical time-of-flightMost surfaces, with distance valueCentimeters to a few meters
Sensing principles of proximity sensors

Key parameters and output types

The most important parameter is the rated sensing distance, specified for a standard target, typically a square plate of mild steel for inductive sensors. Real targets of other materials need a correction factor: aluminum or copper can reduce the effective inductive range to roughly half or less, unless the sensor is a factor-one type designed for all metals.

ParameterTypical valuesWhy it matters
Rated sensing distanceModel dependent, often 2-15 mm inductiveMounting position and tolerance
HysteresisOften up to about 20 percent of rangePrevents output chatter
Switching frequencyHundreds of Hz to several kHzDetecting fast-moving targets
Output typePNP, NPN, analog or IO-LinkCompatibility with the controller
Flush or non-flush mountingShielded or unshielded faceRange versus embedding in metal
Protection ratingCommonly IP67 or higherResistance to dust, water, coolant
Parameters that define a proximity sensor

Industrial devices typically run on 24 V DC and switch a PNP or NPN transistor output. Many newer sensors also support IO-Link, which adds diagnostics, configurable thresholds and distance values over the same three-wire connection.

Proximity sensors compared with other robot sensors

Proximity sensing overlaps with several neighboring sensor categories. The table shows how a proximity sensor differs from sensors that measure contact, force or full geometry, and where each one fits in a robot system.

SensorOutputContact neededTypical robot use
Proximity sensorPresence or short distanceNoPart present, end position, safety zone
Tactile sensorContact location and pressureYesGrip feedback, skin sensing
Ultrasonic sensorDistance to the nearest echoNoObstacle detection on mobile robots
LiDARDistances across a scanNoMapping and navigation
EncoderPosition of a shaft or axisMechanical couplingJoint position control
Force sensorForce and torque valuesYesAssembly and contact control
Proximity sensors and related sensor types

Ultrasonic, infrared and time-of-flight sensors can act as proximity sensors or as simple rangefinders, depending on whether the controller uses a switching threshold or the measured distance.

Choosing a proximity sensor for a task

Selection follows from the target material, required distance and environment. Inductive sensors are the default for metal parts because they ignore dirt, oil and most non-metallic contamination. Capacitive sensors detect almost anything but are sensitive to moisture and buildup on their face.

ApplicationRecommended typeReason
Metal part on a fixtureInductiveRobust, immune to dirt and oil
Liquid level through a plastic wallCapacitiveSenses through non-metallic walls
Cylinder piston positionMagneticDetects the piston magnet through the body
Transparent or shiny objectsUltrasonicIndependent of color and transparency
Long-distance presence detectionPhotoelectricRanges of several meters
Decision guide for common applications

Limitations and installation mistakes

  • Mounting at the nominal limit: placing the target at the full rated distance leaves no margin for temperature and tolerance; aim for about 80 percent of rated range.
  • Mutual interference: sensors mounted too close to each other can disturb each other’s fields.
  • Non-flush sensors embedded in metal: the surrounding metal triggers the sensor permanently.
  • Contamination: dust on optical lenses or buildup on capacitive faces causes false signals.
  • Using standard sensors for safety: personnel protection requires safety-rated devices, not ordinary proximity switches.

In machine safety, only safety-rated sensors and evaluation units designed to the applicable functional safety standards may be used to protect people. A standard proximity sensor can confirm machine states, but it must not be the only barrier between a person and a hazard.

The short version

A proximity sensor answers one simple question: is something close to me right now? It does this without touching anything, much like an automatic door that opens when you walk up to it.

Different versions notice different things. Some only notice metal, some notice almost any material, some use light and some use sound. In a robot or machine, these small sensors act as reliable checkpoints that confirm each step happened before the next one starts.

Where it makes a difference

In a robot cell that loads steel blanks into a press, the controller must be sure a blank sits correctly in the fixture before the robot releases it. Two inductive sensors with an 8 mm rated range are mounted under the fixture at about 6 mm from the blank, giving a safe margin.

Magnetic sensors on the gripper cylinders confirm that the jaws are open or closed, and a capacitive sensor monitors the level in a lubricant tank. When one fixture sensor fails to switch, the controller stops the cycle instead of pressing a misaligned blank. The cell avoids costly tool damage, and IO-Link diagnostics show gradual signal loss before a sensor fails completely.