ESP32 Internet of things Project

IoT applied in Agriculture with ESP32

Connected objects have applications in many sectors, and agriculture is one of the most benefiting from the benefits of the Internet of Things.

Purpose of this project

This project describes the application of IoT (Internet of Things) in agriculture. In this environment we take measurements of the humidity of the soil of a plant.

Monitoring of the parameter around this process (information provided by the soil sensor) is done using open source tools and resources such as ESP32 and ThingSpeak. We read the sensor data in real time on the internet through a web page and also on the graphs in ThingSpeak.

This work is done using an ESP32 microcontroller which will send all information via WIFI concerning the environment of our plant, to ThingSpeak.

Necessary components

  • ESP32
  • Soil moisture sensor

  • Connecting wires

  • Test plate

  • Wifi network


To perform the assembly, you can connect:

for the soil sensor:

  • pin S to pin D34 of the ESP32 board

  • pin (+) to pin 3.3V of the ESP32 board

  • pin (-) to the GND pin of the ESP32 board

The soil moisture values sent by the ESP32 card to the thinkspeak.com site

Program in micropython:

Remarque: il faut importer la bibliothèque suivante: simple.py

0 commentaire

Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top