DS18B20 temperature sensor problem

What version of the IDE are you using? If it is 1.0.1, try compiling that code on 1.0, and show the messages from that.