5% OFF Over $19, Code: Elephant5; 10% OFF Over $59, Code: Elephant10

EASY plug Ultimate Starter Learning Kit Project 17: I’m thirsty

Posted by Fiona Su on

This lesson we are going to use the soil sensor to detect the soil moisture of your plant.
Component Required

  • EASY plug control board*1
  • EASY plug soil moisture sensor*1
  • EASY plug OLED module*1
  • RJ11 cable * 2
  • USB cable*1

Component Introduction
Keyestudio EASY plug Soil Moisture Sensor

The EASY Plug soil moisture sensor can read the amount of moisture present in the soil surrounding it. It's an ideal for monitoring an urban garden, or your pet plant's water level.
This soil moisture 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).
If you use this sensor to make an automatic watering device, it will be helpful to remind you to water your indoor plants or to monitor the soil moisture in your garden.

  • Connector: Easy plug
  • Power Supply: 3.3V or 5V
  • Working Current: ≤ 20mA
  • Output Voltage: 0-2.3V
  • Sensor type: Analog output
  • Surface finish: immersion tin

Connect It Up
Connect the EASY Plug soil sensor to control board using an RJ11 cable.


Upload the Code


What You Should See


Done uploading the code, open the serial monitor and set the baud rate to 9600, you can see the analog value is 0.
When place the two probes of moisture sensor into your plant soil, you can see the value change.



Adding OLED Display
If you want to display the soil moisture value more convenient, you can add OLED screen.

Hookup Guide


Test Code


What You Should See
Upload success, you should see the soil value is showed on the OLED screen.


All Tutorials

Buy >> EASY plug Ultimate Starter Learning Kit 


Leave a comment

Please note, comments must be approved before they are published