Hi,

I am using Groove Temperature sensor and code posted on wiki (seeedstudio.com/wiki/Grove_- … ure_Sensor) seems to be working fine.

However I am not able to understand the equation used in the calculation. Wiki says that equation is taken from Data sheet. However I am unable to find the equation in the data sheet. Data sheet only mentioned B value. I am not able to co-relate equation with Steinhart–Hart Equation either as Steinhart–Hart Equation uses three coefficients but this equation is using only B value.

Can someone please enlighten me for following two statements.

resistance=(float)(1023-a)*10000/a; //get the resistance of the sensor;

temperature=1/(log(resistance/10000)/B+1/298.15)-273.15;//convert to temperature via datasheet ;

Data Sheet attached.

TTC03.pdf (68.6 KB)