I purchased the Grove High Temperature Sensor and assumed there would be Python code examples to allow me to easily read it - I was wrong.
The code provided for the sensor is C code meant to run on an Arduino: https://github.com/Seeed-Studio/Grove_HighTemp_Sensor/blob/master/Hight_Temp.cpp.
The product FAQ ( http://support.seeedstudio.com/knowledgebase/articles/743697-grove-high-temperature-sensor-sku-111020002 ) simply states that there are GrovePi examples for analog read, and to modify them - so not incredibly helpful.
I think I need to read the pin value, then do some fancy math on it to get the actual read temperature value. I think I understand the C code enough to be able to do that.
When I plug the sensor into port A0 and run
grovepi.analogRead(0), I get a value that hovers around 67. When I dipped the end of the thermocouple into recently boiled water, the reading floated around 90. When I unplugged the sensor entirely, the reading floated around 312.
Is the value I’m getting back the voltage on the port in mV? I realize I still need to do the fancy math, but I just want to make sure I’m getting expected values first.