Skip to content

This project uses ESP8266 and DHT22 sensors to monitor indoor and outdoor temperature and humidity. Data is exposed via a REST API and consumed by a Shelly plug script, which automatically controls a fan based on real-time environmental conditions.

License

Notifications You must be signed in to change notification settings

chpro/dew-point-fan-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌡️ Smart Fan Control with ESP8266, DHT22 & Shelly Plug

This project uses an ESP8266 microcontroller and DHT22 sensors to monitor indoor and outdoor temperature and humidity. The data is exposed via a REST API and consumed by a Shelly Plug script, which automatically controls a fan based on real-time environmental conditions.


🚀 Features

  • 📡 Real-time data collection with ESP8266
  • 🌬️ Indoor & outdoor temperature and humidity monitoring
  • 🔌 Smart fan automation via Shelly Plug scripting
  • 🌐 RESTful API for seamless data access

🧠 Use Case

Perfect for smart home environments where automated ventilation is needed based on temperature and humidity thresholds—ideal for rooms with poor airflow, greenhouses, or server closets.


🛠️ Arduino IDE Setup

Recommended Version: 2.3.6

🔌 Pin Overview

Refer to the WeMos D1 Pinout for wiring details. https://github.com/corerd/WeMosD1

📥 Install ESP8266 Board Support

Follow this guide: Getting Started with ESP8266

https://lastminuteengineers.com/getting-started-with-esp8266/#installing-the-esp8266-core

Board Manager URL:

http://arduino.esp8266.com/stable/package_esp8266com_index.json

Board Settings:

  • Board: "Wemos D1 pro"
  • Upload Speed: 115200

📚 Required Libraries


📡 REST API

  • Endpoint: /
  • Port: 8080

📦 Sample JSON Response

{
  "indoor": {
    "temperature": 22.8,
    "humidity": 53.5
  },
  "outdoor": {
    "temperature": 22.9,
    "humidity": 53.5
  }
}

About

This project uses ESP8266 and DHT22 sensors to monitor indoor and outdoor temperature and humidity. Data is exposed via a REST API and consumed by a Shelly plug script, which automatically controls a fan based on real-time environmental conditions.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published