in

Arduino Weather Station

Real-time temperature and humidity sensing using Arduino

The Arduino Weather Station project requires the following parts

  • Arduino Nano
  • 16×2 LCD Display
  • DHT 11 Sensor or DHT 22 Sensor
  •  Breadboard, Jumper wires
  •  Resistor 1k.

This project accurately gives the real-time temperature and humidity at a place. Inorder to get the necessary temperature and humidity values we make use of the DHT 11 sensor. We can also use DHT 22 sensor which is more accurate but slow in taking readings.  The LCD Display is used to display the temperature and humidity values in celsius and percentage respectively.

The brain of the project is Arduino Nano. In the Arduino IDE we make use of the Adafruit Sensor Library, DHT Sensor Library and Liquid Crystal Library.

The reading from the DHT 11 sensor by default comes in °F reading, so we have to convert it to °C in the program code.

The sensor data is updated every 2  seconds inorder to produce accurate readings and give time for the sensor to become stable.

Also symbols of a thermometer and water droplet is displayed to note high state of temperature and humidity respectively.

The project can be further developed by adding an SD Card Module and save temperature and humidity reading continuously and save it in a text file. This text file can be opened us MS Excel and converted into graphs. By this addition  we are able to compare temperature and humidity values at different times on different days.

Overall its a fun, useful and research based project.

Connection Instructions.

  • DHT 11 Sensor
  1. Connect the Data pin of DHT Sensor to D12 pin of the arduino.
  2. Connect the VCC pin of DHT Sensot to 5V output of the arduino and GND pin to arduino GND.
  • 16X2 LCD Module
  1. Connect VSS pin of LCD to arduino GND.
  2. Connect VDD pin of LCD to 5V output of the arduino.
  3. Connect V0 to arduino GND using 1k resistor. (This will give a fixed contrast for the LCD)
  4. Connect RS pin to D10 pin of the arduino.
  5. Connect RW pin to arduino GND.
  6. Connect E pin to D11 pin of the arduino.
  7. Connect D4 pin to D4 pin of the arduino.
  8. Connect D5 pin to D5 pin of the arduino.
  9. Connect D6 pin to D6 pin of the arduino.
  10. Connect D7 pin to D7 pin of the arduino.
  11. Connect A pin to 5V output of the arduino.
  12. Connect K pin to arduino GND.

After all the connections are completed we can move on to the Arduino IDE.

Download all the above libraries and paste it on the Library folder present in the Arduino folder in the documents folder.

After this step copy and paste the code, compile and upload. Make sure to remove the sensor before uploading the code.

Code 

Download through Google Drive

What do you think?

10 points
Upvote Downvote

Written by Mahesh US

O.D.O.B project

Google assistant for room appliances