User Manual
2/13/2018 Lora Sensor Node-LSN50 - Wiki for Dragino Project
http://wiki.dragino.com/index.php?title=Lora_Sensor_Node-LSN50 16/17
Calculation method
The DS18B20 is configured as 12 bits at factory shipment. When reading the temperature, a total of 16 bits are read. The
first 5 bits are sign bits. When the current 5 bits are 1, the read temperature is negative. When the current 5 bits are 0, Take
the temperature is positive. When the temperature is positive read method: the hexadecimal number can be converted into
decimal. When the temperature is negative, the reading method is: add 1 after the hexadecimal inversion, and then convert it
to 10 hexadecimal. Example: 0550H = +85 degrees, FC90H = -55 degrees.