Hello world! I am a tinkere and maker all the way Kenya. I love doing electronic DIY projects and I'm an avid fan of development boards, particularly the Intel Galileo, so be sure that most of the projects I will share with you will involve this powerful board.

In this project I built a very simple weather station that records the temperature and humidity and saves these to a memory card

Step 1: Moisture Sensor

IRequirements and Interfacegot Soil Moisture Sensor from ebay for less than $4. Basically A soil moisture sensor measures the water content in soil. With it, you can easily tell when the soil needs more water or when it’s over-watered . When the soil moisture deficits, the sensor output value will decrease. This sensor uses the two probes to pass current through the soil, and then it reads that resistance to get the moisture level. More water makes the soil conduct electricity more easily (less resistance), while dry soil conducts electricity poorly (more resistance. You can know whether a plant needs water or not by observing the results that the sensor outputs. Now by the end of this blog you will be able to make your own moisture sensor that can track the water need of plants of you garden.Requirements and Interface

Step 2: Requirements and Interface


Moisture sensor module (Arduino Compatible) Intel Galileo Board

Jumper wires




Power supply: 3.3v or 5v

Pin definition:

Analog output(Yellow wire) o

GND(Black wire) o Power(Red wire)

DO: Digital output interface

Step 3: The Code

The code is written in C++ with Visual Studio which is going to deploy on Intel Galileo running on windows.

Here I am using Gen1 board but you can definitely use any. According to the code sensor data is received by A0 pin. However any analog I/O pin can do the task. My sensor was showing values above 300 when the soil is moist and above 500 when it is completely dry but when I place it in water the values drops to 100. Here I have attached an LED to alert us when the soil gets dry or you can do something else with your Advanced Gardening System to alert you that Plant needs water. Also I have noticed that different sensors give you different values. So might be your values of Dry, Moist and Wet soil will be different than mine but you can always play with the values and tabulate them. After few samples you can finally conclude the values for each different condition of moisture with your sensor

Step 4: Values When Sensor Is Placed in Water

Step 5: Eureka!

Finally your first Intel Galileo project is up and running.

<p>Cool project. I have been thinking about making some kind of sensor like this for my house plants.</p>

About This Instructable




More by Chris Barsolai:Intel Galileo Projects: Simple DIY Weather Station 
Add instructable to: