I’m trying to read the value from a soil temperature sensor(found here: http://www.vegetronix.com/Products/THERM200/) using analogRead(), converting it to volts and then using the conversion to get the temperature:
double val = analogRead(pin); double volts = val / 4096.0 * 3.3; return (volts * 41.67) - 40;
The volts seem about 0.6V too low (@1.06V), so my output is 4.08 Celsius -which would kill my plants at that low of temperature. My volt-o-meter reads 1.6V which would put the temp around 27C… much closer to what I expect.
Am I doing something stupid?