Soil Moisture Sensor (Raspberry Pi)

Introduction: Soil Moisture Sensor (Raspberry Pi)

About: the Raspberry Pi is Awesome!

Basic tutorial of how to setup a soil moisture sensor with the Raspberry Pi.

Step 1: Parts

RPI 3 –

4 Amp Power Adapter –

16GB Micro SD –

120 pcs jumper cable:

Soil Moisture Sensors:

Step 2: Setup

VCC -> 5V


SIG -> GPIO 21

Step 3: Code

1. Copy script to raspberry pi

2. Run script by typing "python" and hit enter to run

Step 4: Additional Info



    • Creative Misuse Contest

      Creative Misuse Contest
    • Fix It! Contest

      Fix It! Contest
    • Tiny Home Contest

      Tiny Home Contest

    2 Discussions

    Can a flexible probe be made to detect dehydration? This could be a great wearable.


    Question 2 months ago

    Hi, Excellent tutorial. Is it possible to connect multiple sensors to the same Raspberry? If yes, how can I do it? Thanks.