Hi, Amoque

something rings my bell,here ...

your code is written for DS1820 and you are stating you use a DS18B20 ... ( see the "count_remain" & "count_per_C" use ... )

Both datasheets have little differences ...

Alain