Real-Time Temperature and Humidity Monitoring System using DHT11 Sensor, ThingSpeak and ESP32

The Real-Time Temperature and Humidity Monitoring System integrates the DHT11 sensor, ESP32 microcontroller, and ThingSpeak platform to provide a comprehensive solution for monitoring environmental conditions. The system enables users to remotely track and analyze temperature and humidity data via a user-friendly interface.

System Components

  • DHT11 Sensor: Measures temperature and humidity.
  • ESP32 Microcontroller: Processes and uploads data to the cloud.
  • ThingSpeak Platform: Stores and visualizes data in real-time.

Setting Up ThingSpeak Channel

1. Create a New Channel

  • Log in to ThingSpeak and navigate to the “Channels” tab.
  • Click “New Channel” to create a channel.

2. Configure Channel Settings

  • Name: Provide a descriptive name, e.g., “Temperature_Humidity_Monitoring.”
  • Fields: Assign “Temperature” to Field 1 and “Humidity” to Field 2.
  • Privacy Settings: Set to Public or Private based on your preference.

3. Save Channel

  • Click “Save Channel” to finalize settings.

4. Obtain Write API Key

  • Navigate to the “API Keys” tab.
  • Generate and copy the Write API Key for use in the ESP32 sketch.

ESP32 Sketch Integration

1. Prepare Arduino IDE

  • Open the Arduino IDE on your computer.
  • Install required libraries:
  • “DHT sensor library”
  • “Adafruit Sensor” library
  • “ThingSpeak” library

2. Connect DHT11 Sensor to ESP32

  • VCC Pin: Connect to 3.3V on the ESP32.
  • GND Pin: Connect to GND on the ESP32.
  • Data Pin: Connect to a GPIO pin on the ESP32 (e.g., D2).

This setup enables real-time monitoring of temperature and humidity data, which is stored and visualized on the ThingSpeak platform for easy access and analysis.

Leave a comment

Your email address will not be published. Required fields are marked *