Part 1: Hardware

Introduction to Motion Detection

Motion detection is a common feature in modern technology, from automatic lighting to security systems. One of the key components that makes this possible is the Passive Infrared (PIR) sensor. This chapter introduces how PIR sensors work, how to connect them to an Arduino, and how to use them to trigger simple actions based on detected movement.

​A Passive Infrared (PIR) sensor is an electronic device designed to detect changes in infrared radiation within its field of view. Unlike active sensors that emit energy, a PIR sensor is "passive," meaning it only receives infrared radiation emitted or reflected by objects in the environment.

​All objects with a temperature above absolute zero emit some level of infrared radiation. Warm-blooded animals, including humans, emit infrared radiation that peaks within a specific wavelength range. The PIR sensor is particularly sensitive to this range, making it effective for detecting human and animal movement.