The whitepaper describes how you can build a simple motion sensor, a Sensor device driver, and a Sensor application that you can use to observe real-time sensor data in Windows 7. The sample firmware can be used to program a Parallax BS2 microcontroller. The sample driver supports communication between a Windows 7 application and the sensor. (Note that in addition to a passive-infrared motion sensor, the driver also supports a compass, a 2-axis accelerometer, and an ultra-sonic distance sensor). The sample application demonstrates the use of the Windows 7 Sensor API to acquire sensor data. With very little work, you can modify this application so that it receives data from any of the three other sensors which the driver supports.
More info: Download