SunFounder ESP32 Starter Kit
Code
Note:
• Open the 5.9_moisture.ino file under the path of esp32-starter-kit-main\c\codes\5.9_moisture.
• After selecting the board (ESP32 Dev Module) and the appropriate port, click the Upload button.
• Always displaying “Unknown COMxx”?
Once the code is successfully uploaded, the serial monitor will print out the soil moisture value.
By inserting the module into the soil and watering it, the value of the soil moisture sensor will become smaller.
1.26 5.10 Thermometer
A thermistor is a temperature sensor that exhibits a strong dependence on temperature, and it can be classified into two
types: Negative Temperature Coefficient (NTC) and Positive Temperature Coefficient (PTC). The resistance of an NTC
thermistor decreases with increasing temperature, while the resistance of a PTC thermistor increases with increasing
temperature.
In this project, we will be using an NTC thermistor. By connecting the NTC thermistor to an analog input pin of the
ESP32 microcontroller, we can measure its resistance, which is directly proportional to the temperature.
By incorporating the NTC thermistor and performing the necessary calculations, we can accurately measure the temper-
ature and display it on the I2C LCD1602 module. This project enables real-time temperature monitoring and provides
a visual interface for temperature display.
Required Components
In this project, we need the following components.
It’s definitely convenient to buy a whole kit, here’s the link:
Name ITEMS IN THIS KIT LINK
ESP32 Starter Kit 320+
You can also buy them separately from the links below.
1.26. 5.10 Thermometer 91