Adafruit's Raspberry Pi Lesson 11. DS18B20 Temperature Sensing
In this lesson, you will learn how to use a DS18B20 with the Raspberry Pi to take temperature readings.
Since the Raspberry Pi has no ADC (Analog to Digital Converter), it cannot directly use an analog temperature sensor like the TMP36, making the DS18B20 a good choice for temperature sensing.