Here is how I setup Dallas DS18B20 one wire temp sensors on my Raspberry Pi.

I used a 3 pin computer fan female connector and slid the Dallas one wire sensor in. I used the color code shown above.

Then then I hooked it up to the Pi using the diagram below:
Ref: http://projects.privateeyepi.com/home/temperature-sensor-project-using-ds18b20
Here is my very ugly implementation of the above:
And then secured in shrink tubing:
Thats it, same script as my other sensors. I will post a link when I find it.



