This is an Arduino sketch where a Passive Infrared (PIR) Motion sensor is used to detect any movement in the range of the sensor and a LED is also used which glows whenever any movement is detected and turns off when there is no movement. Sensor is connected to digital pin 3 of the Arduino Uno and the LED is connected to digital pin 4 with a resistor of 220 ohm in series.