Hi, Ahmed

Just comparing the 18B20 Datasheet, page 5 to the 1820 Data., Page 4 will help you to understand how temperatures are coded in both cases ...

and what you have to modify to get a nice result ...

Alain