Intro: How to Use the Soil Hygrometer Module - Arduino Tutorial
In this tutorial we will use one soil hygrometer module to measure soil moisture of a pot.
The module can give us a digital signal when the soil need watering and this output can be adjusted by the potentiometer. Or it can give us an analog signal of current soil moisture!
In this tutorial we will use the analog signal output of this module and we will change it in percentage value. Finally we will print in serial monitor the current percentage value of soil moisture.
So, let's get started!
Step 1: What You Will Need
For this tutorial you will need:
- Arduino uno
- Soil hygrometer module
- some breadboard cables
And some soil for testing
Step 2: The Circuit
The connections are pretty easy, see the above image with the breadboard circuit schematic.
Step 3: The Code
Here's the code, embedded using Codebender!
Try downloading the Codebender plugin and clicking on the "Run on Arduino" button to program your Arduino board. And that's it, you've programmed your Arduino with this sketch!
You can keep playing with that by clicking the "Edit" button and start making your own modifications to the code.
Step 4: Serial Monitor - Testing
Put the sensor in dry soil for testing. Press the connect button below to start the serial communication.
Now throw some water on the soil and observe how the value changes
Step 5: Well Done!
You have successfully completed one more "How to" tutorial and you learned how to use the saoil hygrometer module with Arduino.
Check this Arduino Automatic Watering System
I hope you liked this, let me know in the comments!
NadavZ made it!