Skip to main content

How to Make Simple Weather Station Using Arduino



Hello Guys, In this Blog I will explain how to make simple weather station to sense temperature and humidity using DHT11 sensor and Arduino, the sensed data will be displayed on LCD Display. Before starting this instructable you must know some information about the DHT11 sensor.




  1. DHT11
  2. 16×2 LCD Display
  3. Arduino Uno
  4. Male to Female Jumper Wires - 8

Step 2: About DHT11 Sensor

About DHT11 Sensor

DHT11 is a humidity and temperature sensor. It can be used as humidity sensor as well as the temperature sensor. You can find the dht11 sensor of 2 types in the market. One is with 4 pins and another is with 3 pins. In 3 pin dht11 sensor already 10k Ohm resistor is added inside the module. The operating voltage of this module is 3.3 V. The output of this sensor is digital.

Step 3: Connecting DHT11 With Arduino

Connecting DHT11 With Arduino
Connecting DHT11 With Arduino

If you are using 4 pins DHT11 Connection are as follows

DHT11 Arduino UNO Vcc 3.3V Out PIN4 (Digital) GND GND NC --

Connect a 10K Ohm resistor between Vcc and Out Pin of DHT11.

If you are using 3 pins DHT11 Connection are as follows

DHT11 Arduino UNO Vcc 3.3V Out PIN4 (Digital) GND GND

Step 4: Connecting I2C LCD Display to Arduino

Connecting I2C LCD Display to Arduino
Connecting I2C LCD Display to Arduino

I already made an instructable on how to connect I2C LCD display to Arduino

You can check here https://www.instructables.com/id/How-to-Connect-I2...

I2C LCD Arduino

GND <---> GND

VCC <---> 5V

SDA <---> A4

SCL <---> A5

Step 5: Code

Code

You must include dht11 and I2C LCD libraries. You can download below.

Download DHT11 Library

Download I2C LCD Library

Download Arduino Code

#include <dht.h>

#include <Wire.h>

#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE);

dht DHT; #define DHT11_PIN 4

void setup(){

lcd.begin(16, 2); }

void loop() {

int d = DHT.read11(DHT11_PIN);

lcd.setCursor(0,0);

lcd.print("Temp: ");

lcd.print(DHT.temperature);

lcd.print((char)223);

lcd.print("C");

lcd.setCursor(0,1);

lcd.print("Humidity: ");

lcd.print(DHT.humidity);

lcd.print("%");

delay(1000);

}

Step 6: Complete Construction and Working

Comments

Popular posts from this blog

Building a Complete Website with Groq API: A Step-by-Step Guide

Building a Complete Website using Groq API: A Step-by-Step Guide Introduction: In today's digital age, having a website is no longer a luxury, but a necessity for businesses, individuals, and organizations. With the rise of API-first development, it's now possible to build a complete website using APIs like Groq. In this blog post, we'll explore how to use Groq API to build a complete website from scratch. What is Groq API? Groq API is a powerful API that allows developers to build, manage, and deploy websites, applications, and services with ease. It provides a wide range of features, including data storage, authentication, and integration with third-party services. Getting Started with Groq API To get started with Groq API, you'll need to create an account on the Groq website. Once you've signed up, you'll receive an API key that you can use to make requests to the API. Step 1: Setting up the Project Structure Before we start building our website, we need to s...

Build your own Wi-Fi Repeater or Range extender using NodeMCU

We are in the Internet of Things (IoT) generation! These days, you can control your home gadgets/devices like air-conditioner, room heater, water heater, etc. remotely from anywhere and the device to do this can easily be built or purchased off the shelf. Over the course, we have also built a few IoT based home automation projects  using  Arduino ,  ESP , and  Raspberry Pi .

DIY GPS Speedometer using Arduino and OLED

  Speedometers are used to measure the travelling speed of a vehicle.  Today we will use GPS to measure the speed of a moving vehicle. GPS speedometers are more accurate than standard  speedometers  because it can continuously locate the vehicle and can calculate the speed.  GPS technology  is widely used in smartphones and vehicles for navigation and traffic alerts.