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+

3 in 1 Starter Kit

You can also buy them separately from the links below.

COMPONENT INTRODUCTION

PURCHASE LINK

SunFounder R3 Board

BUY

Jumper Wires

BUY

Soil Moisture Module

BUY

Schematic

../_images/circuit_5.4_soil.png

Wiring

../_images/measure_the_moisture_bb.jpg

Code

Note

  • Open the 4.4.measure_soil_moisture.ino file under the path of 3in1-kit\basic_project\4.4.measure_soil_moisture.

  • Or copy this code into Arduino IDE.

  • Or upload the code through the Arduino Web Editor.

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.