Note
Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.
Why Join?
Expert Support: Solve post-sale issues and technical challenges with help from our community and team.
Learn & Share: Exchange tips and tutorials to enhance your skills.
Exclusive Previews: Get early access to new product announcements and sneak peeks.
Special Discounts: Enjoy exclusive discounts on our newest products.
Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.
👉 Ready to explore and create with us? Click [here] and join today!
4.4 Measure Soil Moisture¶
In the planting industry, the crops themselves cannot directly obtain the inorganic elements in the soil, Water in the soil acts as a solvent for dissolving these inorganic elements.
Crops absorb soil moisture through the root system, obtain nutrients, and promote growth.
In the process of crop growth and development, the requirements for soil temperature are also different. Therefore, a soil moisture sensor is required.
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 |
---|---|---|
3 in 1 Starter Kit |
380+ |
You can also buy them separately from the links below.
COMPONENT INTRODUCTION |
PURCHASE LINK |
---|---|
- |
|
Schematic
Wiring
Code
Note
Open the
4.4.measure_soil_moisture.ino
file under the path of3in1-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.