My EzloPi Project #2 - Soil Moisture Sensors for Plants

I thought I’d have a go at using some Soil Moisture Sensors and an ESP32 board / EzloPi.

Ezlogic Dynamic Dashboard Tiles:


The example tutorial here on the EzloPi website shows how to connect one Soil Moisture Sensor directly to the ESP board.

Here is their wiring diagram for that.

Here is my wiring diagram for two Soil Moisture Sensors and using the expansion board.

I got an ESP32 board:


Chip Information -
Silabs CP2102

I bought this expansion board also off Aliexpress and using female to female Dupont cables I can easily connect two Soil Moisture Sensors to the two 3.3V and two GND pins that are supplied on the expansion board etc.

I purchased two of these Soil Moisture Sensor Modules off Aliexpress.

First I downloaded the “Universal” Windows drivers from this page here this enabled my Windows 10 PC to communicate with the ESP board on a USB “Com” port.

Once I had all the wiring done and connected up I then used the EzloPi Web Flasher website to configure my sensors and flash the firmware onto the ESP32 board.

Once your ESP board is connected to your PC via a USB data cable you can click “Connect Device” on the menu.


Select the serial port and click the Connect button.


It should then go Green and say Connected


On the first section in the “Manufacturer” “Brand” and “Model” fields you can enter any descriptive text you wish.

Note the “EzloPi Device ID” is auto generated and will be the serial number of this EzloPi “Controller” that you will see on your account etc. Also enter your 2.4Ghz WIFI SSID name and password, this is the WIFI that the ESP board will be connected too.

Here I used the Analog Input option twice and added two, one for GPIO Pin 33 and one for GPIO Pin 32.

You can name your sensor in the first field on this dialogue box.



Once you have added both Analog Inputs and configured them you can click the “Flash Device” button.


You will then see this pop-up message telling you to press the “Boot” button on the ESP32 board.


Once you have done that you will then see this pop-up message. Here you need to be patient and wait, it can take sometime to flash the firmware on to the board.


Once its done you will then see this pop-up mesage.


You should then see your two new Soil Moisture Sensors in the Ezlogic dynamic dashboard page.

Note - If you do not see them you might need to go to the Settings - Controllers area in the Ezlogic Web UI and add the EzloPi “Controller” into your existing Controller group.

When the soil probe is dry and just in air it should read 0%. Then when you put the probe into soil, you should get a percentage reading…


Meshbot triggers are coming soon for EzloPi sensor devices also.

If you missed it, my first EzloPi project was here.


Some photos of the actual devices.

I did have to solder the pin header onto the Soil Moisture Sensor module…

Bench Testing.

I probably need to buy some enclosure cases to put them into.

1 Like

how much did the whole thing cost you?
how many sensors can you put in one EzloPi device?
cool project :wink:

I just had a quick look on Aliexpress looks like I paid the following:

1x ESP32 32 Pin MicroController Board = £3.22 - Shipping £1.55 - Total £4.77
1x ESP 32 Pin expansion board = £0.62 - Shipping £1.59 - Total £2.21
2x Soil Moisture Sensors =£1.58 each - Shipping £1.37 - Total £ 4.53
A few female to female Dupont cables I already had them.

Grand Total £11.51 or 14.65 USD.

I think you can have up to 4x Soil Moisture Sensors on the one ESP board.

Its a project for my daughter to remind her to water her plants in her room, when I can use a Meshbot trigger, I plan to send TTS announcement messages to her Google Home speaker periodically.

1 Like

we just need a nice 3d printed box to put it all in :slight_smile:

Yeah I was thinking that also. I don’t have a 3D printer here though. But I have been looking at some project enclosure boxes on Aliexpress that maybe I can use.

1 Like

A well documented project. Good job.

1 Like

We can also use all these Arduino compatible ESP boards to run EzloPi so that we can work with Arduino projects as well, (or replace).
You don’t have to write any code to achieve that.!USD!3.00!3.0!!!3.00!!%40210318c916923733878771452e54bf!67333639827!sea!US!0!A&curPageLogUid=zRZMNCOnPFoC!USD!5.72!5.03!!!5.72!!%40210318c916923733878771452e54bf!12000033981036985!sea!US!0!A&curPageLogUid=zGbelxQ5TqGx!USD!5.45!4.36!!!5.45!!%40210318c916923733878771452e54bf!12000033479397457!sea!US!0!A&curPageLogUid=MAUoQfDckAGQ!USD!3.28!2.66!!!3.28!!%40210318c916923733878771452e54bf!12000016917147470!sea!US!0!A&curPageLogUid=Xgy9oDDXwHzq!USD!5.25!3.67!!!5.25!!%40210318c916923733878771452e54bf!12000021022178681!sea!US!0!A&curPageLogUid=yJhS4Okqz79g!USD!13.73!0.99!!!99.53!!%402101d91e16923734691342045ef005!12000034615352084!sea!US!0!A&curPageLogUid=WoK9gBlw4uas!USD!3.45!1.93!!!3.45!!%402103205316923736429996386e5663!12000031811147606!sea!US!0!A&curPageLogUid=lLaxcc0hDukD!USD!3.33!2.9!!!3.33!!%402103205316923736429996386e5663!66439683790!sea!US!0!A&curPageLogUid=Kj4CNMsvjHMM!USD!5.72!5.03!!!5.72!!%40210318c916923737094034402e54b9!12000033981036985!sea!US!0!A&curPageLogUid=rfKKgzbAaIxI!USD!5.45!4.36!!!5.45!!%40210318c916923737094034402e54b9!12000033479397457!sea!US!0!A&curPageLogUid=FbIcgTuZupMv!USD!3.41!3.0!!!3.41!!%40210318c916923737094034402e54b9!12000034553780880!sea!US!0!A&curPageLogUid=1kcTFibHZZnw!USD!6.40!3.2!!!6.40!!%402101f4a116923737996046379e869f!12000034630650721!sea!US!0!A&curPageLogUid=EVI6VlAilHk6!USD!3.41!3.0!!!3.41!!%402101f49916923738887613292e5660!12000018196507290!sea!US!0!A&curPageLogUid=0bCUqsHPuWc9

@melih what are they? Just different types of microcontrollers ? Dont really know what Wemos is.

they are all ESP based microcontrollers who are built with compatibility for Arduino…
so you can take an existing Ardunio project, replace it with new board, put EzloPi firmware on it and now you can control it with our Apps, Cloud and create rules etc.