mechasif / AtmosWatch

This project uses an ELEGOO UNO R3 to display real-time temperature, humidity, and air quality data from DHT11 and MQ135 sensors on a LCD. Ideal for monitoring indoor environmental conditions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AtmosWatch: DHT11 and MQ135 Sensor with LCD Display

This project integrates a DHT11 temperature and humidity sensor, an MQ135 air quality sensor, and a LiquidCrystal_I2C LCD to display the sensor readings. The project utilizes an ELEGOO UNO R3 equipped with an ATMega16U2 Processor, an 8-bit AVR® RISC-based microcontroller to read sensors' data and display the LCD readings.

Table of Contents

Introduction

This project reads temperature, humidity, and air quality levels using the DHT11 and MQ135 sensors, and displays the data on a LiquidCrystal_I2C LCD. It is a simple yet effective way to monitor environmental conditions in real time.

Components

  • ELEGOO UNO R3 (or, Arduino UNO R3)
  • DHT11 Temperature and Humidity Sensor
  • MQ135 Air Quality Sensor
  • LiquidCrystal_I2C LCD (20x4)
  • Jumper wires
  • Breadboard

Circuit Diagram

Circuit_Diagram

The Project

Physical_Connections_1

Physical_Connections_2

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/DHT11-MQ135-LCD-Monitor.git
  2. Install the necessary libraries:

  3. Open the project in your Arduino IDE and upload the code to your board.

Usage

  1. Connect the components as per the circuit diagram for the LCD.
  2. Power on the Microcontroller.
  3. Observe the temperature, humidity, and air quality readings on the LCD.

Code Explanation

  • Setup Function:

    • Initializes the LCD and sensors.
    • Sets up the VCC pin for the MQ135 sensor.
    • Displays an activation message on the LCD.
  • Loop Function:

    • Reads data from the DHT11 sensor (temperature and humidity).
    • Reads data from the MQ135 sensor (air quality).
    • Displays the readings on the LCD.
    • Prints the readings to the serial monitor for debugging.

Author

Asif Ahmed

License

This project is licensed under the MIT License - see the LICENSE file for details.

Feel free to contribute, report issues, or fork this repository to improve the project. Your contributions are highly appreciated!

About

This project uses an ELEGOO UNO R3 to display real-time temperature, humidity, and air quality data from DHT11 and MQ135 sensors on a LCD. Ideal for monitoring indoor environmental conditions.

License:MIT License


Languages

Language:C++ 100.0%