Microsoft's HID platform and new WinRT API support both analog and digital devices. This video shows two sample solutions, one for an analog temperature sensor and another for a digital motion sensor. These solutions include instructions for creating: the device, the accompanying firmware, and a Windows store app.
To learn more about the analog temperature-sensor solution, see:
To learn more about the digital motion-sensor solution, see: