Introduction: Room Temperature and Humidity Monitor

My project, QTempair, measures the room temperature, humidity and air quality.

This project reads data from the sensors, sends that data to the database and that data will be displayed on a website. You can save a temperature in the settings on the website, when it gets warmer than the saved temperature a fan will turn on. You will also be able to turn the fan on or off through the website.

So in short QTempair will be able to:

  • Measure the humidity in the room
  • Measure the temperature in the room
  • Measure the carbon dioxide in the room
  • Display the data on the website

In this instructable I will explain step by step how I made it.

Step 1: Step 1: Getting Started!

In the attachment you will find a excel file. A BOM (bill of materials) There you will find the stuff you need, where you can find them, how much they will cost and how much the project will cost.

The materials you will need are:

  • Raspberry Pi 3 model B
  • DHT22
  • MQ-135
  • DC motor
  • LCD Display
  • Led
  • Ldr
  • Some wood to make a box, but just a bread box, etc will also do the trick!

Step 2: Step 2: Let's Start Wiring

Based on this fritzing schematic you should be able to make the wiring

Step 3: Step 3: Programming

I programmed the components in Python (https://www.python.org/)

If you connected to components correctly based of the fritzing schematic you should be able to read data from them.

Step 4: Step 4: Database

I used MySql (https://www.mysql.com/) for making my database. I used 2 tables for this project. In one table we will save the sensor that we use in this project, in the other table will be the data be saved from the sensor. This is linked with the sensorId from the sensor table.

Step 5: Step 5: Website

Here are the screens of my website. You see that the data is visualized in the chart. That data is displayed and the settings page.

Step 6: Step 6: Putting It All Together!

I used MDF for my "case" but you can use anything you want. Just make sure it's thick enough and you can drill some holes in it.