An infrared sensor is not a single measurement technology. “IR sensor” can describe a reflective proximity detector, a PIR motion detector, a non-contact temperature sensor, an optical encoder, or an infrared receiver. They all operate with radiation outside the visible spectrum, but the quantity being measured is different.

That distinction determines what the sensor can detect, how far it can work, and which environmental conditions can produce false or weak readings.

Active infrared sensing measures returned light

A basic reflective sensor contains an infrared emitter, commonly an IR LED, and a photodiode or phototransistor receiver.

The signal path is:

IR LED -> object -> reflected IR -> photodetector

The emitter supplies the radiation. The detector measures part of that radiation after it interacts with the target. A nearby object can therefore be detected when enough emitted IR returns to the receiver.

This principle appears in obstacle detectors, reflective optical switches, line-following sensors, paper detectors, and some short-range proximity systems.

The electrical output does not directly mean “distance.” Received optical power also depends on the target’s reflectivity, geometry, angle, emitter intensity, detector sensitivity, and ambient illumination. A white matte surface and a dark glossy surface at the same distance can produce different readings.

A threshold circuit can turn the analog detector signal into a simple digital state:

returned IR < threshold -> no detection
returned IR >= threshold -> detected

That is useful for presence detection, but it should not be confused with a calibrated range measurement.

Modulation separates the emitter from ambient infrared

Sunlight, incandescent lamps, and other sources can contribute infrared energy to a photodetector. A receiver that only measures total optical intensity cannot easily tell whether the energy came from its own LED or the environment.

One common solution is to modulate the emitter.

Instead of leaving the LED continuously on, the circuit drives it with a known pattern or carrier. The receiver then looks for that pattern in the detected signal. Conceptually:

ambient IR:      ---------------------
emitted IR:      _|‾|_|‾|_|‾|_|‾|_
receiver:        ambient + modulation
signal filter:       ^ known component

This does not make the system immune to interference, but it improves rejection of steady or unrelated optical energy. Infrared remote-control receivers use the same general idea with a modulated carrier, although their purpose is communication rather than proximity measurement.

PIR sensors do not illuminate the target

A passive infrared sensor works differently. PIR means passive infrared: the sensor does not need to shine an IR beam at the person it detects.

Objects above absolute zero emit thermal radiation. Human bodies emit infrared energy, and a pyroelectric sensing element can respond to changes in the incident thermal radiation.

A typical PIR module uses a Fresnel lens to divide its field of view into zones. Motion across those zones changes the infrared energy reaching different sensing regions. The electronics amplify and process that changing signal.

The important word is change.

A conventional PIR module is much better at detecting a warm body moving across its field of view than determining that a stationary person is continuously present. It also does not produce a detailed thermal image.

Its behavior is closer to:

thermal scene remains similar -> little changing signal
warm object crosses zones     -> changing signal -> motion event

This is why PIR sensors are common in occupancy-triggered lights and alarms but are a poor substitute for a sensor that must continuously prove that a person remains in a seat.

Infrared temperature sensors measure emitted radiation

Non-contact IR thermometers and thermal sensors use another mechanism. They measure infrared radiation emitted by a surface and infer temperature from the detected radiative power within the sensor’s spectral band.

A thermopile is commonly used for this purpose. The sensor also needs to account for its own temperature, because the detector and its surroundings participate in the thermal measurement.

Surface emissivity matters. An ideal blackbody is an abstraction with emissivity of 1; real materials emit less efficiently, and reflective surfaces can return infrared radiation from surrounding objects into the sensor.

As a result, pointing an IR thermometer at shiny metal can produce a reading influenced strongly by reflected thermal radiation. The sensor is measuring radiation arriving at its detector, not making direct physical contact with the target.

The field of view matters as well. If the measured spot is larger than the intended target, the reading combines radiation from the target and its background.

Reflective IR can distinguish contrast without identifying color

Reflective IR sensors are often used underneath line-following robots. An IR LED illuminates the floor and a detector measures the returned signal.

A surface that reflects strongly at the emitter’s infrared wavelength produces a larger response than one that absorbs more of that radiation. A threshold can then classify the two regions.

That does not mean the sensor sees color in the same way as a human eye. Two materials that look different in visible light can have similar infrared reflectance, while visually similar materials can behave differently in IR.

For a line sensor, the relevant property is contrast at the sensor’s operating wavelength, not simply whether the printed surface looks black or white to a person.

The same principle is used by reflective optical encoders. Alternating reflective and non-reflective regions on a rotating part create pulses as they pass the detector. Counting those transitions can represent motion or position.

Infrared does not normally provide through-wall sensing

The word “radiation” can make infrared sound more penetrating than it is. Common building materials are generally opaque to the wavelengths used by ordinary IR emitters, PIR modules, and thermal sensors.

An IR proximity sensor therefore cannot detect an object through a wall merely by increasing software sensitivity. A PIR detector also requires thermal radiation from the scene to reach its sensing element through materials that transmit its operating wavelengths.

Even transparent-looking materials need care. A material can be transparent to visible light while absorbing particular infrared bands, or it can transmit some near-infrared wavelengths while blocking longer-wave thermal infrared.

Optical behavior must be evaluated at the wavelength used by the sensor.

The sensor type should follow the quantity being measured

Several requirements that sound similar need different hardware:

Requirement Suitable IR mechanism What is actually detected
Object is near a device Active reflective IR Returned emitted light
Person moved through an area PIR Change in thermal IR
Surface temperature without contact Thermopile IR sensor Emitted thermal radiation
Dark/light line under a robot Reflective IR Difference in IR reflectance
Rotating wheel position or speed Reflective/transmissive optical sensor Periodic optical transitions
Remote-control command Demodulating IR receiver Modulated optical signal

This is the useful boundary around the term “infrared sensor”: infrared describes the part of the electromagnetic spectrum involved, not the physical variable reported by every device.

Choosing an IR component therefore starts with the measurement itself. Presence, motion, distance, temperature, contrast, and encoded data are separate problems. Once that quantity is explicit, emitter wavelength, detector response, optics, modulation, field of view, target material, and ambient interference can be treated as engineering parameters rather than hidden assumptions.