Riva:
This i have some trouble understanding
if (tempC != DEVICE_DISCONNECTED) {If tempC not equal to what?
Look in the DallasTemperature.h file you pasted and you will see on line 55/56 this
// Error Codes
#define DEVICE_DISCONNECTED -127
It is a value returned if the device does not exits that you can check for so you don't start doing stuff based on duff temperature data.
Aha, so the math add up once again. Thank you Riva, my brain would not accept something being computed, that was not defined in some way - but it was. I will sleep well tonight XD.
Kind regards
Anders