Paul Brown has taken his Pi, hooked up a PIR motion sensor and plugged in a PiNoIR camera. He’s waterproofed it for use outside and then run some tests to detect movement in his house at night (don’t worry – no burglars, just the dog). He’s written all about it on his blog and put all the code online so if you want to reproduce his project, you can!