Liked this article! You'll love our video courses.
Checkout our comprehensive pre-recorded ESP32 based Video Course for Internet of Things
More details

A Plant humidity monitoring with ESP32 project demonstrates processing & remote access to real-time data and how the data is used for monitoring the real-time environment of the plant. In this IoT project, we will be using the DHTxx (DHT11/DHT22) board along with the IoT gateway board to set up the plant monitoring system accessible from anywhere using the internet. To monitor the data real-time we use a cloud service called Cayenne from myDevices, it is a free cloud platform best suitable for beginners in the IoT project development.

Temperature and Humidity monitoring with ESP32 – Connection description

Connect the DHTxx QuickInsert board to the available bus in the IoT board. By this connection, we will get the Power for the DHTxx QuickInsert board and the connection between the ESP32 module (GPIO32).

We have another detailed tutorial using DHT11/22 with ESP32.

Humidity monitoring with esp32 and cayenne - plant monitoring project

Now Connect your IoT board to your computer using USB cable and find out the COM Port from device manager which is required for the Arduino IDE.

Cayenne setup

Cayenne setup

  • Once after you log in, you can access your dashboard and monitor your connected devices.
  • To add a new device, select Add new… and then Device/Widget

Humidity monitoring with esp32 and cayenne - device widget

  • Then select “Bring your own thing

Cayenne - things add

 

  • Then note down the MQTT username, MQTT Password and Client ID, these are required in our program.

Humidity monitoring with esp32 and cayenne - mqtt settings

Program description

First, include the required libraries and then define the Pin number and DHT sensor model

Then give the WiFi credentials and Cayenne user credentials

Then in the Setup section add the following lines

In the loop, section add the following line

After writing the program compile it and download to the IoT board from the Arduino IDE

Dashboard setup

  • Once after you upload the program go to the Cayenne dashboard and you can see as below
  • Click on the Plus sign on the readings to add it to the dashboard

Cayenne - Plus sign cayenne

  • To change the display data type select the settings icon

cayenne - Settings widget

  • Then set it as humidity reading

Humidity monitoring with esp32 and cayenne - Adding the parameter

  • Finally, your dashboard will be like this as below

Final cayenne dashboard - humidity monitoring

 

 

Liked this article! You'll love our video courses.
Checkout our comprehensive pre-recorded ESP32 based Video Course for Internet of Things
More details
Spread the love, share this