This is the code I have for using the DS18B20 temperature sensors.