Quick Answer

A proximity sensor tells a PLC or controller that an object is present within a few millimetres of its face, without contact and without moving parts. Most factory proximity sensors are inductive (metal only); capacitive versions also see plastic, powder and liquid. To specify one, define three things:

  • Target: metal (inductive) or non-metal (capacitive), and which metal.
  • Distance: the gap to the target, checked against the assured distance Sa, not just the rated distance Sn.
  • Interface: housing size, flush or non-flush, NPN or PNP, NO or NC, supply voltage, cable or M8/M12 connector.

How it works, in four steps:

  1. An oscillator drives a coil behind the sensing face and builds an alternating field.
  2. A metal target in the field draws eddy currents, which damp the oscillation.
  3. A trigger circuit compares the amplitude with switch-on and switch-off thresholds.
  4. The output transistor (NPN or PNP) switches the load or PLC input.

What is a proximity sensor?

A proximity sensor is a non-contact sensor that detects the presence or absence of an object inside a defined sensing zone and turns that into an electrical signal. Most are switches: the output is either on or off. Some, such as analog inductive sensors, output a 4–20 mA or 0–10 V signal proportional to the gap instead.

The everyday job is the same in every machine: confirm that a part, a piston, a cam or a carriage has reached a position. Before proximity sensors became standard, this was done with mechanical limit switches. A limit switch needs the target to push a lever or plunger, so it wears, bounces and can be knocked out of adjustment. A proximity sensor has no moving parts, is sealed in a metal or plastic housing and can switch many times per second, which is why it now handles most position checks on machine tools, conveyors, presses, packaging lines and hydraulic cylinders.

The term is also used for other technologies — photoelectric, ultrasonic and magnetic sensors all detect objects without contact. For a side-by-side comparison of the five main technologies, see types of proximity sensors. This article focuses on what a proximity sensor is and how to read its specifications, using the inductive type as the main example because it is the one most engineers mean when they say "prox".

How does a proximity sensor work?

An inductive proximity sensor works by watching how much energy a metal target takes out of a small electromagnetic field. Inside the housing are four stages: an oscillator with a ferrite-core coil behind the sensing face, a demodulator, a trigger (Schmitt trigger) circuit and an output stage.

Illustration of how an inductive proximity sensor works: oscillator, demodulator, trigger and output stages, with a metal target damping the field at the sensing face
Illustration: a metal target inside the sensing distance damps the oscillator; the trigger switches the output at one threshold and releases it at another.

When no metal is present, the oscillator runs at full amplitude. As a metal target approaches, the alternating field induces eddy currents in it. Those currents draw energy from the coil and the oscillation amplitude falls. The trigger compares the amplitude with a switch-on threshold; once it drops below that level, the output switches. When the target moves away, the output only releases at a second, slightly different threshold. The gap between the two points is the hysteresis, and it stops the output from chattering when a target sits right at the edge of the zone. The step-by-step physics is covered in how an inductive proximity sensor works.

A capacitive proximity sensor uses the same four-stage idea, but its sensing element is an electrode that forms a capacitor with the surroundings. Any object with a dielectric constant higher than air — plastic, glass, wood, water, granules — changes the capacitance and triggers the output, which is why capacitive types are used for non-metal targets and for level detection through a plastic tank wall.

Which type of proximity sensor detects which target?

The target material decides the technology. Use this table as a first filter, then check the detailed comparison in inductive vs capacitive proximity sensors.

TechnologySensing principleDetectsTypical use
InductiveEddy-current damping of an electromagnetic fieldMetals onlyMachine position, cylinder end-of-stroke, gear and shaft speed, part presence on metal fixtures
CapacitiveChange in capacitance at the sensing electrodeMetals and non-metals: plastic, glass, wood, powder, liquidsLevel through a plastic tank wall, hot plastic or glass, bulk materials
UltrasonicEcho time of a sound pulseSolids and liquids, independent of colourLevel and distance in tanks and bins
MagneticMagnetic field of a target magnetMagnets only, also through non-magnetic wallsPneumatic cylinder piston position, door interlocks

Which proximity sensor specifications matter most?

The specifications that decide whether a proximity sensor works on the machine are sensing distance, mounting style, output type, supply voltage and environment. The terms below follow IEC 60947-5-2, the product standard for proximity switches.

SpecificationWhat it meansWhat to check
Rated sensing distance (Sn)Nominal switching distance measured with a standard mild-steel targetA lab value — do not design the gap to Sn
Assured sensing distance (Sa)Distance at which switching is guaranteed across voltage, temperature and unit toleranceDesign to about 72% of Sn, then reduce for non-steel targets
Flush / non-flushFlush (shielded) sensors can be mounted level with metal; non-flush (unshielded) sensors reach further but need a metal-free zone around the faceSee flush vs non-flush mounting
Output typeNPN (sinking) or PNP (sourcing) 3-wire, DC 2-wire, AC 2-wire, AC/DC; NO or NC contact logicMatch the PLC input; see NPN vs PNP wiring
HysteresisDifference between switch-on and switch-off distancePrevents chatter at the edge of the sensing zone
Switching frequencyMaximum number of on/off cycles per secondGear-tooth and cam speed; see switching frequency
EnvironmentTemperature range, IP rating (IEC 60529), pressure on the face, weld fieldsChoose a special series for heat, hydraulic pressure or welding

Worked example (calculated): an M18 flush sensor with a rated distance of 8 mm has an assured distance of about 8 × 0.72 ≈ 5.8 mm on mild steel. If the cam on your machine runs with a 4 mm gap that can vary by ±1 mm, the worst case of 5 mm is still inside Sa, so the sensor will switch reliably. For stainless steel, aluminium or brass targets the usable distance is lower; apply the target-material correction factors in the proximity sensor sensing distance guide before fixing the gap.

SEGMENsensor inductive proximity sensor specifications

The general-purpose SGI-GP series covers the standard cylindrical sizes. Each size offers several rated distances; the exact value, output and connection are fixed by the part number. Full options are on the inductive proximity sensor product page.

HousingRated distance, flushRated distance, non-flushOutputsConnection
6.5 mm1 / 2 / 3 / 4 mm2 / 4 / 6 / 8 mmNPN, PNP, DC 2-wire2 m cable, M8 or M12 connector, M8 pigtail
M81 / 2 / 3 / 4 mm2 / 4 / 6 / 8 mmNPN, PNP, DC 2-wire2 m cable, M8 or M12 connector, M8 pigtail
M122 / 4 / 6 / 8 mm4 / 8 / 10 / 12 mmNPN, PNP, DC 2-wire, AC/DC2 m cable, M12 connector, M12 pigtail
M185 / 8 / 12 / 15 mm8 / 16 / 20 / 23 mmNPN, PNP, DC 2-wire, AC 2-wire, AC/DC2 m cable, M12 connector
M3010 / 16 / 22 / 25 mm15 / 25 / 40 / 50 mmNPN, PNP, DC 2-wire, AC 2-wire, AC/DC2 m cable, M12 connector

Supply ranges are 10–30 V DC, 5–36 V DC or 10–55 V DC for 3-wire DC types, 10–60 V DC for DC 2-wire and 20–250 V AC or AC/DC for AC types, depending on the part number. Housings are nickel-plated brass or stainless steel (PBT on some M18 models). Samples: from 1 pc for qualification; volume per project.

Download the one-page datasheet (PDF)

Sizes, sensing distances, outputs, wiring colours and dimensions for the SEGMENsensor inductive proximity sensor range.

Specifying proximity sensors for a new machine?

Send the target material, gap, housing size, output type and supply voltage. An application engineer replies within 24 hours with suitable part numbers. Request qualification samples (1–5 pcs, 5–7 working days) →

Where are proximity sensors used?

Proximity sensors are used wherever a machine needs to confirm a position or count a moving metal part. Typical applications, evaluated per project, include:

  • Machine tools and automation: home and limit positions of slides, tool-changer and clamp confirmation, part presence on metal fixtures — usually M8 to M18 SGI-GP flush sensors.
  • Conveyors and packaging: counting metal cans or carriers, gear-tooth and shaft-speed monitoring, where switching frequency matters.
  • Hydraulic cylinders and valve blocks: end-of-stroke detection with the sensing face in oil pressure, handled by the SGI-HP high-pressure inductive sensor (stainless steel housing, ceramic face, IP67 / IP69K).
  • Hot zones: injection moulding, die casting and oven conveyors, where the SGI-HT high-temperature inductive sensor works up to +150 °C (T150).
  • Weld cells: robotic and resistance welding lines, where the WR weld-field immune sensor tolerates magnetic fields up to 150 mT.
  • Gap and runout measurement: where the distance itself is needed, an analog inductive sensor outputs 4–20 mA or 0–10 V over a measuring range up to 10 mm.
Illustration of an inductive proximity sensor detecting the piston at the end of stroke inside a hydraulic cylinder
Illustration: a high-pressure inductive proximity sensor confirms end of stroke in a hydraulic cylinder, a common OEM application.

How do you choose a proximity sensor? 6 steps

  1. Identify the target. Metal → inductive. Plastic, glass, powder or liquid → capacitive. Note the exact metal, because aluminium, brass and copper reduce the usable distance.
  2. Measure the gap and its variation. Take the largest gap during the machine cycle and keep it inside the assured distance Sa (about 72% of Sn, then corrected for material).
  3. Choose the housing and mounting. Pick M8, M12, M18 or M30 to fit the bracket. Use flush where the face sits in metal; non-flush where you need more range and can keep a metal-free zone.
  4. Match the electrical interface. NPN or PNP to suit the PLC input card, NO or NC for the logic you need, the supply voltage, and a cable or M8/M12 connector (see the M12 connector pinout).
  5. Check the environment. Ambient temperature, coolant or wash-down (IP rating), oil pressure on the face, weld fields and vibration. Move to the SGI-HT, SGI-HP or WR series when the standard range is exceeded.
  6. Confirm speed. For gear teeth and fast cams, check the switching frequency against targets per second.

What should you send to quote a proximity sensor?

To get the right part number at the first attempt, send: target material and size, required gap, housing size, flush or non-flush, NPN or PNP and NO or NC, supply voltage, cable length or connector, operating temperature, any pressure or weld-field exposure, and annual quantity. The quotation depends on the series, housing material, output, connection, any certification requirements and the quantity; an application engineer replies with a configuration and quotation within 24 hours on working days. Quotations are FOB China.

Frequently Asked Questions

A proximity sensor is a switch that changes its output when an object comes close to its sensing face, without touching it. In machines the most common version is the inductive proximity sensor, which detects metal parts such as cams, gear teeth, pistons or brackets at distances from about 1 mm to 50 mm depending on size.

A limit switch needs the target to press a lever or plunger, so it wears and can be knocked out of adjustment. A proximity sensor detects the target without contact, has no moving parts and is sealed, which makes it better for high cycle counts, coolant, dust and vibration. A limit switch is still useful where a visible mechanical stop is needed.

No. An inductive sensor only detects electrically conductive targets, mainly metals. For plastic, glass, wood, powder or liquid through a tank wall, use a capacitive proximity sensor; SEGMENsensor capacitive high-temperature types reach +180 °C (T180).

It describes the output transistor. A PNP sensor switches the positive supply to the load (sourcing) and is common in Europe; an NPN sensor switches the load to 0 V (sinking) and is common on many Asian machines. Match the sensor to the PLC input type; NO or NC sets whether the output is on or off when a target is present.

SEGMENsensor SGI-GP inductive sensors have rated sensing distances from 1 mm (6.5 mm and M8 flush) to 50 mm (M30 non-flush). Design to the assured distance Sa, about 72% of the rated distance Sn on mild steel, and reduce it further for stainless steel, aluminium, brass or copper targets.

Qualification samples of 1–5 pcs ship in 5–7 working days. Production lead time and MOQ are confirmed with the quotation. Quotations are FOB China with 100% T/T in advance, products carry a 12-month warranty, and inquiries are answered within 24 hours on working days.

Automatic assembly line for proximity switches at the SEGMENsensor factory in Shenzhen
Proximity switch automatic assembly at the SEGMENsensor factory in Shenzhen, where OEM volume orders are built.

Last updated: · SEGMENsensor Engineering Team