Passive infrared sensor
All objects with a temperature above absolute zero emit heat energy in the form of radiation. Usually this radiation is invisible to the human eye because it radiates at infrared wavelengths, but it can be detected by electronic devices designed for such a purpose.
The term passive in this instance refers to the fact that PIR devices do not generate or radiate any energy for detection purposes. They work entirely by detecting the energy given off by other objects. It is important to note that PIR sensors don't detect or measure "heat" per se; instead they detect the Infrared radiation emitted from an object which is different from but often associated/correlated with the object's temperature (e.g., a detector of X-rays or gamma rays would not be considered a heat detector, though high temperatures may cause the emission of X or gamma radiation).
Infrared radiation enters through the front of the sensor, known as the 'sensor face'. At the core of a PIR sensor is a solid state sensor or set of sensors, made from pyroelectric materials—materials which generate energy when exposed to heat. Typically, the sensors are approximately 1/4 inch square (40 mm2), and take the form of a thin film. Materials commonly used in PIR sensors include gallium nitride (GaN), caesium nitrate (CsNO3), polyvinyl fluorides, derivatives of phenylpyridine, and cobalt phthalocyanine. The sensor is often manufactured as part of an integrated circuit.
PIR motion-based detector 
A PIR-based motion detector is used to sense movement of people, animals, or other objects. They are commonly used in burglar alarms and automatically-activated lighting systems. They are commonly called simply "PIR", or sometimes "PID", for "passive infrared detector".
What is definitely detected is the broken field for a “normal” temperature. The sensor detects the change in the infrared radiation and triggers an alarm if the gradient of the change is higher than a predefined value. The field does not have to be broken by an object with a different temperature in order to register change, as highly sensitive sensors will activate from the movement alone.
PIRs come in many configurations for a wide variety of applications. The most common models have numerous Fresnel lenses or mirror segments, an effective range of about ten metres (thirty feet), and a field of view less than 180 degrees. Models with wider fields of view, including 360 degrees, are available—typically designed to mount on a ceiling. Some larger PIRs are made with single segment mirrors and can sense changes in infrared energy over one hundred feet away from the PIR. There are also PIRs designed with reversible orientation mirrors which allow either broad coverage (110° wide) or very narrow "curtain" coverage, or with individually selectable segments to "shape" the coverage.
Pairs of sensor elements may be wired as opposite inputs to a differential amplifier. In such a configuration, the PIR measurements cancel each other so that the average temperature of the field of view is removed from the electrical signal; an increase of IR energy across the entire sensor is self-cancelling and will not trigger the device. This allows the device to resist false indications of change in the event of being exposed to brief flashes of light or field-wide illumination. (Continuous high energy exposure may still be able to saturate the sensor materials and render the sensor unable to register further information.) At the same time, this differential arrangement minimizes common-mode interference, allowing the device to resist triggering due to nearby electric fields. However, a differential pair of sensors cannot measure temperature in this configuration, and therefore is only useful for motion detection.
The PIR sensor is typically mounted on a printed circuit board containing the necessary electronics required to interpret the signals from the sensor itself. The complete assembly is usually contained within a housing, mounted in a location where the sensor can cover area to be monitored.
The housing will usually have a plastic "window" through which the infrared energy can enter. Despite often being only translucent to visible light, infrared energy is able to reach the sensor through the window because the plastic used is transparent to infrared radiation. The plastic window reduces the chance of foreign objects (dust, insects, etc.) from obscuring the sensor's field of view, damaging the mechanism, and/or causing false alarms. The window may be used as a filter, to limit the wavelengths to 8-14 micrometres, which is closest to the infrared radiation emitted by humans. It may also serve as a focusing mechanism; see below.
Different mechanisms can be used to focus the distant infrared energy onto the sensor surface.
Some PIRs are manufactured with internal, segmented parabolic mirrors to focus the infrared energy. Where mirrors are used, the plastic window cover generally has no Fresnel lenses molded into it.
Burglar alarm applications
When used as part of a burglar alarm, the electronics in the PIR typically control a small relay. This relay completes the circuit across a pair of electrical contacts connected to a detection input zone of the burglar alarm control panel. The system is usually designed such that if no motion is being detected, the relay contact is closed—a 'normally closed' (NC) relay. If motion is detected, the relay opens, triggering the alarm.
Manufacturers recommend careful placement of their products to prevent false alarms (detections not caused by an intruder).
They suggest mounting the PIRs in such a way that the PIR cannot "see" out of a window. Although the wavelength of infrared radiation to which the chips are sensitive does not penetrate glass very well, a strong infrared source (such as from a vehicle headlight or sunlight) can overload the sensor and cause a false alarm. A person moving on the other side of the glass would not be "seen" by the PID. That may be good for a window facing a public sidewalk, or bad for a window in an interior partition.
They also recommended that the PIR not be placed in such a position that an HVAC vent would blow hot or cold air onto the surface of the plastic which covers the housing's window. Although air has very low emissivity (emits very small amounts of infrared energy), the air blowing on the plastic window cover could change the plastic's temperature enough to trigger a false alarms
Sensors are also often designed to "ignore" domestic pets such as dogs or cats through a higher sensitivity threshold or by keeping the floor of the room out of focus.
PIR remote-based thermometer
Designs have been implemented in which a PIR circuit measures the temperature of a remote object. In such a circuit, a non-differential PIR output is used. The output signal is evaluated according to a calibration for the IR spectrum of a specific type of matter to be observed. By this means, relatively accurate and precise temperature measurements may be obtained remotely. Without calibration to the type of material being observed, a PIR thermometer device is able to measure changes in IR emission which correspond directly to temperature changes, but the actual temperature values cannot be calculated.
- "Home Alarm PIR Tech". Venice Locksmith -- Home Security Technician’s Notebook. Steve's Lock, Safe and Alarm. Retrieved 2012-06-24.
- "How Infrared motion detector components work". Non commercial research page. Glolab Corporation. Retrieved 2013-05-31.
- C. F. Tsai and M. S. Young (December 2003). "Pyroelectric infrared sensor-based thermometer for monitoring indoor objects". Review of Scientific Instruments 74 (12): 5267–5273. doi:10.1063/1.1626005.