SunFounder ESP32 Starter Kit
When the temperature rises, the resistance of the thermistor decreases, causing the value read on I35 to decrease.
Additionally, by using a formula, you can convert the analog value into temperature and then print it out.
Wiring
Note:
• The thermistor is black and marked 103.
• The color ring of the 10K ohm resistor is red, black, black, red and brown.
Code
Note:
• Open the 5.10_thermistor.ino file under the path of esp32-starter-kit-main\c\codes\5.
10_thermistor.
• After selecting the board (ESP32 Dev Module) and the appropriate port, click the Upload button.
• Always displaying “Unknown COMxx”?
After the code is successfully uploaded, the Serial Monitor will print out the Celsius and Fahrenheit temperatures.
How it works?
1.26. 5.10 Thermometer 93