Arduino Soil Moisture Sensor along with a Nokia 5110 LCD display

Using the Arduino soil moisture sensor with an Arduino can’t be easier. Adding a Nokia 5110 LCD display makes things more professional since we can visually check the moisture levels of the soil.

I wanted to use this sensor for a long time since I find it quite an interesting one. The sensor is very cheap, it costs around 2$.


1. Soil Moisture Sensor:

2. Cheap Arduino Uno:

3. Nokia 5110 LCD:

4. Small Breadboard:

5. Jumper wires:

6. Wires:

The sensor can measure the levels of moisture in the soil. So it can be extremely useful if you want to monitor the soil moisture of your plants or automate the watering procedure. Let’s see the project we are going to build today. I have one cup in front of me with dry soil. If I place the sensor in the cup we can read a low soil moisture value at the Nokia 5110 display. If I pour some water in the cup you can clearly see that the moisture levels rise. The project is working fine and we can visually check the moisture levels of the soil. Of course this is just a demonstration of the sensor, I am going to build more useful projects in the future with this sensor. Let’s now see how to build this simple project.

The two large exposed pads function as probes for the sensor. The more water in the soil, the better the conductivity between the pads. That results in a lower resistance. The sensor is an analog one, so in the analog output we get a voltage. As the soil gets drier we get more voltage at the analog output since the resistance between the probes gets higher. We can set a threshold in order to enable the digital output at a certain moisture level using this potentiometer. But in this video we are using only the analog output of the sensor module.

The connection to Arduino is extremely easy. We connect GND to Arduino Ground and Vcc to Arduino 5V. Next we connect the analog output of the sensor to Analog pin 0 of the Arduino board. Then all we have to do is to connect the Nokia 5110 LCD display. Watch the detailed tutorial I have prepared on how to connect the Nokia 5110 display to Arduino, it is very easy. After everything is connected, we power up Arduino, and as you can see after a few seconds in the display we can see the moisture value of the soil. Now let’s see the code of the project.

Download the code




Never miss a video: Subscribe to