What is a motion sensor? How does it work? How do I operate it? Introduction A passive infrared motion sensor (PIR sensor) is an electronic sensor that measures infrared light emitted by objects in its field of view. PIR sensors are commonly used in security alarm and automatic lighting applications.PIR sensors detect general movement, but give no information on who or what has moved. For this, an IR imaging sensor is required. How does the sensor detect motion? All objects with a temperature above absolute zero emit thermal energy in the form of electromagnetic radiation. This radiation is not usually visible to the human eye, as it radiates at infrared wavelengths, but it can be detected by the motion sensor. How does the sensor work? The motion sensor has two slots, each made of a special infrared-sensitive material. When the sensor is inactive, both slits detect the same amount of IR, the ambient amount emitted from the room. When a warm body such as a human or animal passes by, it first intercepts one half of the motion sensor, causing a positive differential change between the two halves. When the warm body leaves the detection zone, the opposite occurs, with the sensor generating a negative differential change. These pulses of change are what is detected. Motion sensor pin Motion sensor pins :Vcc: On the 5V pin of the Arduino boardSignal: Connects to one of the signal pins on the Arduino board.GND: Must be connected to ground Detection with serial monitor Now let’s see how to display motion detection on the serial monitor. Motion light alert Let’s see how to light a led on the motion sensor. You can replace the LED by a bulb with a relay to light up a room when someone enters. Motion noise alert Now we’ll see how to switch on a buzzer when the sensor detects movement.