You can download the code from here: http://www.theengineeringprojects.com/2015/02/interfacing-temperature-sensor-18b20-arduino.html