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.
| Type | Detects | Typical sensing range |
|---|---|---|
| Inductive | Metals only | About 1 mm to 60 mm |
| Capacitive | Most solids and liquids | About 1 mm to 40 mm |
| Photoelectric | Most opaque objects | Millimeters to tens of meters |
| Ultrasonic | Solids and liquids, regardless of color | Centimeters to several meters |
| Magnetic | Magnets or magnetized parts | Up to tens of millimeters |
| Optical time-of-flight | Most surfaces, with distance value | Centimeters to a few meters |
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.
| Parameter | Typical values | Why it matters |
|---|---|---|
| Rated sensing distance | Model dependent, often 2-15 mm inductive | Mounting position and tolerance |
| Hysteresis | Often up to about 20 percent of range | Prevents output chatter |
| Switching frequency | Hundreds of Hz to several kHz | Detecting fast-moving targets |
| Output type | PNP, NPN, analog or IO-Link | Compatibility with the controller |
| Flush or non-flush mounting | Shielded or unshielded face | Range versus embedding in metal |
| Protection rating | Commonly IP67 or higher | Resistance to dust, water, coolant |
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.
| Sensor | Output | Contact needed | Typical robot use |
|---|---|---|---|
| Proximity sensor | Presence or short distance | No | Part present, end position, safety zone |
| Tactile sensor | Contact location and pressure | Yes | Grip feedback, skin sensing |
| Ultrasonic sensor | Distance to the nearest echo | No | Obstacle detection on mobile robots |
| LiDAR | Distances across a scan | No | Mapping and navigation |
| Encoder | Position of a shaft or axis | Mechanical coupling | Joint position control |
| Force sensor | Force and torque values | Yes | Assembly and contact control |
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.
| Application | Recommended type | Reason |
|---|---|---|
| Metal part on a fixture | Inductive | Robust, immune to dirt and oil |
| Liquid level through a plastic wall | Capacitive | Senses through non-metallic walls |
| Cylinder piston position | Magnetic | Detects the piston magnet through the body |
| Transparent or shiny objects | Ultrasonic | Independent of color and transparency |
| Long-distance presence detection | Photoelectric | Ranges of several meters |
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.