Code problem for DS18b20

omar-anan:
Please someone help cause this is urgently needed for a bigger project. I am really bad with circuits and programming as I am a mechanical engineer so I am not really good at this. I can post the picture of the circuit as well if someone wants to help and wish to double check if I did it correctly

I always buy at least two of all components for a new project. Your device may be defective.

Paul