The build here uses a Raspberry Pi, a USB camera, and a cheap accelerometer.

Intruder detection with Raspberry-Pi| bitreactive