What we have decided to do is use the TI Analog Temperature Sensor (LM19) and the TI Innovator Hub and calibrate the formula using the hot and cold water samples.
What we did was get the analog reading for 55°C (call it H) (could be any hot temeprature, that is just what we decided for testing purposes) and the analog reading for 0°C (call it C). And we found a linear function using y=mx+b.
m = (55-0)/(H-C)
b = 55 - (m * H)
however, when testing this, even though theoretically it should produce an accurate linear function since the LM19 produces analog out that is linear to temperature, it does not seem to be accurate.
Testing temperature might be 25°C but we are getting sometimes 40°C or -10°C.
Can anyone please help us out, and if you could guide us in the right direction or give suggestions or examples of how you did this.
Thank you.
