what is the difference between ir sensor and pir sensor?
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.