Has anyone got this to work? I've made the following connections:
- 5V to power
- Ground to ground
- Digital 5 to DQ
- 4.7k resistor between 5V and DQ
I've got the following source code: http://pastebin.com/L2AWV3KX , got that from https://www.ghielectronics.com/docs/16/onewire
The application outputs "Temperature: 0" - is my sensor broken? I've tried two different ones.
Image of the setup: http://bildr.no/view/dGdodGhJ