Distance Sensor

for people detection, you probably want the ez-0 or ez-1. But they aren't reliable for people detection. You would be better off buying a cheap ultrasonic sensor and try teckel's newping library.

http://code.google.com/p/arduino-new-ping/