IOT Plant Monitoring with Live Dashboard and Display LCD

Published Aug 26, 2021
 48 hours to build
 Intermediate

It is a system made using ESP32 for monitoring the various factors required for plants to grow. It provides a live IOT dashboard that can be viewed by ANYONE FROM ANYWHERE IN THE WORLD.

display image

Components Used

ESP32 DevKitC 32E
ESP32 DevKitC 32E
1
Nokia5110 Graphical Display
Nokia5110 is 48x84 dot LCD display with Serial Peripheral Interface (SPI) Connectivity. It was designed for cell phones. It is also used in embedded applications.
1
LDR -Photocell Photoresistor
LDR -Photocell, Photoresistor
1
DHT11
DHT11 is a single wire digital humidity and temperature sensor, which gives relative humidity in percentage and temperature in degree Celsius.
1
MQ135 Gas Sensor
MQ135 is a gas sensor used for gas detection and air quality control.
1
Soil Moisture Sensor
Soil moisture sensor is used to measure the water content (moisture) in soil. It is used in agriculture applications, irrigation and gardening systems, etc.
1
Description

Inspiration

Most plant monitoring systems are only able to be monitored in local area networks as accessing the system from outside the local network becomes costly or difficult. I decided to make such a plant monitoring system but with the added ability to access the various values FROM ANYWHERE IN THE WORLD.

What it does

It can monitor my garden statistics in a very detailed graphical format from anywhere in the world. As I am the dashboard ADMIN, i can even make some changes in the dashboard and make some analysis. Even others can monitor the garden sensor values with just a simple link.

How we built it

I used the Cayenne Online Dashboard to connect my ESP32 with the cloud. The following sensors were used for monitoring the plant - LDR sensor for light intensity, DHT11 sensor for temperature and humidity, Soil moisture sensor and MQ135 for air quality sensor. I also used a Nokia 5110 LCD for displaying the same values near the system too.

Setup Cayenne Dashboard for ESP32

If you do not have an account on Cayenne, create an account from the following link: https://cayenne.mydevices.com/cayenne/signup

In this project we are using ESP32 so select “Bring Your Own Thing” but if you are using Arduino or Raspberry Pi you may select the same as shown in the screenshot.

By clicking on "Bring Your own thing" we will get the MQTT username and password. Then name the device as ESP32, as shown in the screenshot.

Now open Arduino IDE and install the Cayenne MQTT library or download the library from Github by clicking on the following link:

https://github.com/myDevicesIoT/Cayenne-MQTT-ESP

Also, install ESP32 board package and select your ESP32 board from the Tools menu.

 

Circuit Diagram

Connections for Nokia 5110 LCD with ESP32

RST <---> GPIO 2 (D2)

CE <---> GPIO 15 (D15)

DC <---> GPIO 4 (D4)

DIN <---> GPIO 23 (D23)

CLK <---> GPIO 18 (D18)

VCC <---> 3.3V

BL <---> 3.3V (through 220Ω Resistor)

GND <---> GND

 

ESP32 and LDR

Connect one leg of LDR with Pin D33

Connect second (free) leg with +3.3V of ESP32

 

ESP32 and MQ135 gas sensor

VCC <---> 3.3V

GND <---> GND

A0 <---> D32

 

ESP32 and DHT11 sensor

VCC <---> 3.3V

GND <---> GND

Signal <---> D27

 

ESP32 and Soil Moisture Sensor

VCC <---> D25

GND <---> GND

Signal <---> D35

Circuit Diagram

 

Results

Here's the link for my IOT Garden Dashboard -

https://cayenne.mydevices.com/shared/60d7bf30518adb4d4aeb12f0

- IT'S LIVE You can see 5 graphs each for sun light intensity, soil moisture, humidity, temperature and air quality. Anyone can access the link from anywhere.

Codes

Downloads

iot_plant_monitoring Download
circuit_diagram Download
Comments
Ad