I have been testing on board Temperature sensor. I followed the reference from an arduino example. I have used the predefined function "temprature_sens_read()" and got constant temperature as the result irrespective of how warm or cold the module is. It is not the issue of the module, as I have tested the code with more than one dev kit. I am using a basic ESP32 dev kit to test the temperature sensor.
I have integrated my code into Hello_world and the result is as follows:
It would be great if if some one can give any API reference to read the temperature values correctly.This is ESP32 chip with 2 CPU cores, WiFi/BT/BLE, silicon revision 1, 4MB external flash
Temp: 53.333332 Celsius...
Temp: 128 F...
Restarting in 10 seconds...
Temp: 53.333332 Celsius...
Temp: 128 F...
Restarting in 9 seconds...
Temp: 53.333332 Celsius...
Temp: 128 F...
Restarting in 8 seconds...
Temp: 53.333332 Celsius...
Temp: 128 F...
Restarting in 7 seconds...
Temp: 53.333332 Celsius...
Temp: 128 F...
Restarting in 6 seconds...
Temp: 53.333332 Celsius...
Temp: 128 F...
Restarting in 5 seconds...
Temp: 53.333332 Celsius...
Temp: 128 F...
Restarting in 4 seconds...
Temp: 53.333332 Celsius...
Temp: 128 F...
Restarting in 3 s
To my knowledge, there is no Hardware or API reference for on board temperature sensor mentioned in ESP-IDF documentation.
Thanks in advance