What is Proximity sensor?

What is a proximity sensor? Types, selection and practical use
A proximity sensor is a sensor that converts a target's presence within a defined detection area into electrical information without physical contact. It might detect an arriving metal part, a plastic container or the position of a magnetic component. What it can detect depends on its operating principle: no proximity sensor can be assumed to detect every material.
In industrial automation, applications include part presence, machine position and product counting. In robotic applications, sensors can check a part or mechanism's position. Catalogues often use “proximity” particularly for inductive, capacitive and magnetic models. In broader usage, optical and ultrasonic methods also provide non-contact proximity detection. When comparing sensor types, read the sensing principle, information provided and output interface separately.
How do the different proximity sensor types work?
Inductive sensors evaluate the effect of eddy currents induced in a metal target by their alternating magnetic field. They are used for metal parts, gears and machine-position detection. Steel, aluminium and copper may not be detected at the same distance by the same model. Check target metal, dimensions and approach direction; specialised metal-detection capabilities depend on the model.
Capacitive sensors detect a target-induced change in capacitance within their electric field. They can be used with metals, plastics, glass, granules and liquids. With suitable material and wall thickness, level detection through a non-metallic container wall is possible. The material's dielectric properties, moisture and surface deposits affect the result. For liquid-level control, choose the detection method for the actual liquid and container.
Ultrasonic sensors using the echo method emit a sound pulse and evaluate its return time. Acoustic reflection matters rather than colour or transparency. They can be used for transparent targets, distance and level applications, but angled surfaces and sound-absorbing materials can weaken the echo. Check the blind zone, target angle and temperature conditions separately.
Photoelectric sensors monitor changes in received light. Diffuse models evaluate light returned by the target. Retro-reflective models detect interruption of light returned by a separate reflector. Through-beam sensors monitor the path between an emitter and a separate receiver. Red or infrared LEDs and lasers are light-source options. Suitable fibre-optic sensor arrangements can be used in confined spaces.
Magnetic proximity sensors respond to a suitable magnet or magnetic field. Hall sensors evaluate the field electronically, while a reed switch changes its contact state under a magnet's influence. The difference between Hall and reed sensing matters for output behaviour and application selection. A magnetic sensor should not be treated as a general detector for ordinary metal parts.
Is an infrared proximity sensor the same as a PIR sensor?
Active infrared detection can emit infrared light and evaluate its return or interruption; it belongs to optical sensing. A PIR motion sensor does not emit that light. It detects changes in thermal infrared radiation within its field of view, particularly from moving targets at a different temperature from their surroundings.
Not every infrared sensor emits light. A conventional PIR sensor is also not a general solution for continuous presence detection of a stationary product or precise distance measurement. Stationary-object detection, human-motion detection and distance measurement are different tasks.
Choosing an initial method for the target
| Target or application | Method to consider first | Key checks |
|---|---|---|
| Nearby metal part | Inductive | Metal type, target size and mounting |
| Plastic container, granules or liquid | Capacitive or suitable ultrasonic sensing | Container wall, material, moisture or echo conditions |
| Conveyor boxes and packages | Photoelectric sensor models | Product spacing, optical arrangement and speed |
| Shiny or transparent packaging | Application-suitable retro-reflective sensing | Polarization and clear-object capability checked separately |
| Passage with mounting available on both sides | Through-beam sensing | Alignment, beam interruption and connections on both sides |
| Mechanism with a magnet | Hall or suitable reed sensing | Magnet, field orientation and operating distance |
This table supports initial screening. Consider the smallest target, most difficult surface and actual working distance together. The comparison of detection sensors helps assess which method may suit the same target better.
Sensing distance, hysteresis and continuous measurement
Nominal sensing distance is specified for defined target and test conditions. A 4 mm inductive sensor cannot be assumed to detect every metal, in every size and mounting arrangement, at 4 mm. Set the working distance using the datasheet's stable operating conditions, including temperature, supply voltage and mechanical tolerances.
Hysteresis is the difference between the distance at which an approaching target changes the output and the distance at which a receding target resets it. If a hypothetical inductive sensor detects an approaching target at 3.0 mm and resets as it moves away at 3.3 mm, the difference is 0.3 mm. This helps reduce repeated output changes caused by small movements around the threshold; it is a separate specification from measurement accuracy or resolution.
A switching output indicates whether a target satisfies a defined condition. For a continuous distance value, select a suitable distance-measuring sensor or another model with measurement capability. Its analog signal, such as 0–10 V or 4–20 mA, is evaluated by a compatible analog input. Not every proximity sensor continuously measures distance.
Why does flush or non-flush mounting matter?
A flush inductive sensor can be installed with its sensing face level with the surrounding metal, within the manufacturer's mounting limits. A non-flush model requires specified clearance around its sensing head. Ignoring that clearance allows mounting metal to affect detection. Housing diameter alone does not determine sensing distance.
Sensors mounted beside or opposite one another can experience mutual interference. Follow the specified sensor spacing, surrounding-metal limits and tightening torque. Also consider the blind zone for ultrasonic sensing, the light path for optical sensing and surrounding materials for capacitive sensing.
PNP/NPN, NO/NC and connection compatibility
PNP/NPN specifies the electrical output arrangement. NO/NC describes switching behaviour relative to a defined reference state. These properties do not describe target material or sensing principle. The output must match the connected PLC and input module. Check light-on/dark-on operation separately for optical models.
For two-wire sensors, check off-state current, on-state voltage drop and load requirements. A NAMUR sensor output is a different interface from a conventional PNP/NPN output; it requires a compatible evaluation input or switching amplifier. The same number of wires does not mean equivalent connections.
Even in a system using a 24 V DC supply, verify the sensor's permitted voltage range. Select cables or connectors for maintenance and movement conditions. Read the product documentation for pin assignment, the common connection and input thresholds.
Frequency and pulse duration for fast targets
Counting frequency matters when successive targets must be detected and counted at the input. If each target produces one pulse, a wheel with 12 targets rotating at 900 RPM produces f = 900 × 12 / 60 = 180 Hz. Read the sensor's frequency rating alongside its specified test target and conditions.
Meeting the 180 Hz rating alone is insufficient. Target and gap geometry, sensor response time and input filtering must allow sufficient high and low durations. The choice of rising or falling edge also affects counting. A suitable high-speed counter input can capture pulses that ordinary program-scan counting might miss.
For direction information or more detailed position tracking, consider a suitable encoder arrangement. A single presence/absence signal does not automatically provide all the application's position information.
Environmental conditions and commissioning
Assess the IP protection rating, temperature range, contact with oils or chemicals, vibration and cable movement together. A high IP rating does not establish compatibility with every cleaning chemical or operating temperature. Deposits and moisture can affect capacitive sensing, lens contamination can affect optical sensing, and echo conditions can affect ultrasonic sensing.
Near power cables and drives, follow the manufacturer's routing and shielding guidance for electromagnetic interference. Check the sensor indicator and controller input together. A changing LED alone does not prove that the input filter accepts the pulse.
Validate with real targets: test the smallest and largest parts, changing materials and the lowest and highest speeds. Include mechanical tolerances and contamination effects. A standard product-detection sensor must not replace safety-rated equipment suitable for personnel protection.