Tool/software: Linux
Hi Team,
I am getting wrong low threshold value while reading the temperature. I am following the below procedure for fetching value.
1. Reading register value from 0x0A register.
2. I am using the below formulas for converting humidity percentage. In both the formula i am getting wrong value.
temp_ths_low = register value (7:0)
//calc_humidity=(((temp_ths_low*165)/256)-40);
//calc_humidity=(((temp_ths_low/256)*165)-40);
But after that also iam getting 65496 value.
So, please answer me ASAP?