zahidaoui

// This sketch looks for 1-wire devices and// prints their addresses (serial number) to// the UART, in a format that is useful in Arduino sketches// Tutorial: // http://www.hacktronics.com/Tutorials/arduino-1-wire-address-finder.html

It looks right - double check the device is the right way round, check with a multimeter that the device is getting the supplyvoltage (some breadboards split the supply rails in the middle for instance). The result shown suggests the pull up resistor is correctly wired but the DS18B20 isn't connected properly.

Personally I'd add a 0.1uF decoupling capacitor near the device too, but make sure the device is getting its supply inthe first place.

[ I will NOT respond to personal messages, I WILL delete them, use the forum please ]

NickPyner

I assume the signal wire on pin 2 is just a slack arsed drawing error, but are you sure you have wired up power rails as drawn? It would not work like that on my breadboard as the power lines are discontinuous.

Check the sensor with your fingers. If it is seriously hot, you have it the wrong way round. I did that but the DS18B20 survived, and so did I.