Question: what is the difference between ir and pir?
Answer: Active IR Sensors Fig 3: An IR receiver detects a reflected signal from a hand to turn off the LED. While PIR sensors are excellent if you want to detect general movement, they don't give you any more information on your subject.