SunFounder 3in1 Kit
Code
Note:
• Open the 4.4.measure_soil_moisture.ino file under the path of 3in1-kit\learning_project\4.4.
measure_soil_moisture.
• Or copy this code into Arduino IDE.
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.
128 Chapter 4. Basic Projects