Skip to content

COD nationwide · Delivery to every city

akCircuit
BeginnerSmart home & IoT 2 hours NodeMCU ESP8266

Wi-Fi weather station

Build your own Wi-Fi weather station

A NodeMCU (ESP8266) reads temperature, humidity and air pressure and shows them live on your phone over your home Wi-Fi. No app and no cloud account needed: just open a web page.

Every required part

Rs 1,962

Tools, if you need them

+ Rs 488

Parts list

12 items

  • 1 part to source on request
  • Wiring and code included
  • Cash on delivery
Wi-Fi weather station: Build your own Wi-Fi weather station
From our reel · 29 Nov 2026

Parts list

Everything you need for the wi-fi weather station

Every part below is in our catalogue at today's price, so the total is what you pay. Required parts are ticked; optional upgrades are not.

Required parts are ticked. Untick anything you already have; the total updates as you go.

Main parts

Wiring & mounting

Tools

Optional upgrades

You also need (most homes have these)

  • Phone charger (USB, 5 V)Powers the station after you upload the code.
  • Your home Wi-Fi name and password

9 items

Rs 2,450

From our reel

Watch it come together in 12 steps

Watch the full reel

YouTube
  1. Step 1: The parts

    1The parts

  2. Step 2: NodeMCU on the breadboard

    2NodeMCU on the breadboard

  3. Step 3: Add the DHT22

    3Add the DHT22

  4. Step 4: Add the BMP280

    4Add the BMP280

  5. Step 5: Wire it up

    5Wire it up

  6. Step 6: Plug into your laptop

    6Plug into your laptop

  7. Step 7: Upload the code

    7Upload the code

  8. Step 8: Live weather on your phone

    8Live weather on your phone

  9. Step 9: Weatherproof box

    9Weatherproof box

  10. Step 10: Mount it outside

    10Mount it outside

  11. Step 11: Rain or shine, it logs

    11Rain or shine, it logs

  12. Step 12: Check it from your sofa

    12Check it from your sofa

How it works

What each part does

The DHT22 measures temperature and humidity; the BMP280 measures air pressure (falling pressure often means rain is coming). The NodeMCU reads both every time the page is opened.

The NodeMCU joins your home Wi-Fi and runs a tiny web server. Open its address (for example http://192.168.1.50) on any phone or laptop on the same Wi-Fi and the page shows the live readings, refreshing every 10 seconds.

Wiring

Connect it pin by pin

Switch the power off while you wire, and connect every GND together unless the table says otherwise.
FromToNote
DHT22 pin 1 (VCC)→ NodeMCU 3V3
DHT22 pin 2 (DATA)→ NodeMCU D5Plus a 10 kΩ resistor from DATA to 3V3
DHT22 pin 4 (GND)→ NodeMCU GNDPin 3 is not used
BMP280 VCC→ NodeMCU 3V3Not 5 V
BMP280 GND→ NodeMCU GND
BMP280 SCL→ NodeMCU D1
BMP280 SDA→ NodeMCU D2

The code

Ready-to-upload Arduino code

Copy it into the Arduino IDE, change the settings at the top if your build needs it, and upload.
Weather station web pageBoard: NodeMCU 1.0 (ESP-12E Module) from the esp8266 board packageDHT sensor library (Adafruit)Adafruit Unified SensorAdafruit BMP280 Library
weather_station.ino
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <Wire.h>
#include <Adafruit_BMP280.h>
#include <DHT.h>

const char* WIFI_NAME = "YourWiFi";
const char* WIFI_PASS = "YourPassword";

DHT dht(D5, DHT22);
Adafruit_BMP280 bmp;
ESP8266WebServer server(80);

String page() {
  float t = dht.readTemperature();
  float h = dht.readHumidity();
  float p = bmp.readPressure() / 100.0;  // hPa
  String html = F("<!doctype html><meta name=viewport content='width=device-width,initial-scale=1'>"
                  "<meta http-equiv=refresh content=10><title>Weather</title>"
                  "<body style='font-family:sans-serif;text-align:center;background:#0b1220;color:#e6edf5'>"
                  "<h2>My weather station</h2>");
  html += "<p style='font-size:3em;margin:.3em'>" + String(t, 1) + " &deg;C</p>";
  html += "<p>Humidity " + String(h, 0) + " %</p>";
  html += "<p>Pressure " + String(p, 1) + " hPa</p></body>";
  return html;
}

void setup() {
  Serial.begin(115200);
  dht.begin();
  if (!bmp.begin(0x76) && !bmp.begin(0x77)) {
    Serial.println("BMP280 not found: check the wiring");
  }
  WiFi.begin(WIFI_NAME, WIFI_PASS);
  while (WiFi.status() != WL_CONNECTED) delay(500);
  Serial.print("Open http://");
  Serial.println(WiFi.localIP());
  server.on("/", [] { server.send(200, "text/html", page()); });
  server.begin();
}

void loop() {
  server.handleClient();
}

Step by step

Build it

  1. 1

    Solder the BMP280 pins

    Push the header strip into the breadboard, sit the BMP280 on top and solder the pins. The breadboard holds them straight.

  2. 2

    Build on the breadboard

    Place the NodeMCU across the centre gap at one end, the DHT22 and BMP280 at the other end, and wire them as in the table. Both sensors run on 3V3.

  3. 3

    Install the ESP8266 boards

    In the Arduino IDE, add the esp8266 board package (File → Preferences → Additional boards URL, then Boards Manager), select “NodeMCU 1.0 (ESP-12E Module)”, and install the three libraries.

  4. 4

    Add your Wi-Fi and upload

    Type your Wi-Fi name and password into the sketch, connect the Micro-USB cable and upload.

  5. 5

    Open the page

    Open the Serial Monitor at 115200 baud. It prints an address such as http://192.168.1.50. Open it on your phone while connected to the same Wi-Fi.

  6. 6

    Move it outdoors

    Put the station in a vented box in the shade, run it from a phone charger and bookmark the page on your phone.

Tips & troubleshooting

  • Use a 2.4 GHz Wi-Fi network: the ESP8266 cannot join 5 GHz networks.
  • If the page shows “nan” for temperature, check the DHT22's 10 kΩ pull-up resistor and its data wire on D5.
  • Most BMP280 boards use address 0x76; the code tries 0x77 as well.
  • Keep the sensors away from the NodeMCU itself: its chip warms up and can add a degree or two.

Stuck on wiring or code?

Send us a photo of your build on WhatsApp. We are makers too, and we will help you get it working.

Ask on WhatsApp

FAQ

Questions people ask

Can I see the readings when I am away from home?+

This version works on your home Wi-Fi. To see it anywhere, send the readings to a free service such as ThingSpeak or Blynk; the sensor code stays the same.

Can I use a DHT11 instead of the DHT22?+

Yes, it is cheaper but less accurate (±2 °C) and does not read below 0 °C. Change DHT22 to DHT11 in the code.

Can it run on batteries?+

The ESP8266 uses a lot of power on Wi-Fi, so a phone charger is best. For battery use, the code needs deep sleep and a cloud service to receive the readings.

Read next

More projects to build

All projects