DS18B20 - temperature sensor code Help Request

Yep, -127 is device not connected

But, that's -127 as an int. It is a float being compared. I never use == when comparing floats.