[Topic] Monitoring a Motion Sensor with Windows 7 [Description] 
Microsoft has created sample firmware, a sample sensor driver, and a Visual Studio .NET application that demonstrate the use of sensors in Windows 7. The sample application works with a passive infrared (PIR) sensor to record a date and timestamp each time that the sensor detects motion.