IoT weather station with cloud dashboard
Measure temperature, humidity and pressure, upload every few minutes and view live charts from anywhere.
Intermediateâą 8â12 hoursđĒ 7 stepsESP8266/ESP32DHT22/BME280ThingSpeak or own server
What you'll learn
- âDigital sensors over I2C
- âSending data to a cloud API
- âPower saving with deep sleep
What you'll build
- âTemperature, humidity, pressure
- âUploads every 5 minutes
- âOnline charts
- âBattery-friendly deep sleep
Step-by-step guide
- 1
Sensor
BME280 over I2C (more accurate than DHT11); install Adafruit_BME280 library; read values.
- 2
Validate readings
Ignore impossible values (NaN, humidity > 100) and average 3 readings.
- 3
Cloud channel
Create a free ThingSpeak channel (or your own small API) and note the write API key.
- 4
Upload
HTTPClient GET/POST to the API with fields; check the HTTP response code.
- 5
Deep sleep
esp_deep_sleep(5 * 60 * 1e6) between readings to run on batteries for weeks.
- 6
Dashboard
ThingSpeak charts, or a small web page with Chart.js reading your API.
- 7
Enclosure
Ventilated, shaded box so sun does not heat the sensor.
đ Make it stand out
- +Rain gauge and wind speed
- +Alerts above 40 °C
- +Compare with Open-Meteo data