Ultrasonic sensors . ( added to Raspberry Pi Projects on 26/08/2013)
The fun you can have with this one piece off kit is great. Just measure a room , take a picture if some gets too close or fire rockets and take a picture of the attack. I`ve included some simple code and a diagram of how to wire it up.