Reading temperature and humidity
Posted: Fri Nov 08, 2019 12:55 am
I'm using an ESP32 Azure IoT Kit. I want to send temperature and humidity along as telemetry to my IoT hub.
I cannot find almost any information on how to do this. I came across one post here where someone refers to using uint8_t temprature_sens_read() (note that the word temperature is misspelled) and much to my surprise that worked. I've searched the code base in esp-idf and can't find a single file that defines that function. There is no include file, you just "extern" it in your .c file.
I still need to get humidity. I haven't found any documentation or samples about that.
Am I reading temperature the right way? How do I get humidity?
Thanks,
David
P.S. I'm surprised the temperature reading is in F. I'd think C would be a better worldwide standard, and I'm curious about the decision to report in F.
I cannot find almost any information on how to do this. I came across one post here where someone refers to using uint8_t temprature_sens_read() (note that the word temperature is misspelled) and much to my surprise that worked. I've searched the code base in esp-idf and can't find a single file that defines that function. There is no include file, you just "extern" it in your .c file.
I still need to get humidity. I haven't found any documentation or samples about that.
Am I reading temperature the right way? How do I get humidity?
Thanks,
David
P.S. I'm surprised the temperature reading is in F. I'd think C would be a better worldwide standard, and I'm curious about the decision to report in F.