📌 Project Overview
A Smart Building uses Arduino + sensors + IoT to automatically monitor and control building systems such as lighting, temperature, security, air quality, and energy usage.
The goal is to save energy, increase safety, and improve comfort.
🎯 Objectives
-
Automatic light control based on occupancy
-
Gas & fire detection
-
Remote control using mobile app or web
-
Energy-efficient building automation
🧠System Block Diagram (Text)
🔧 Components Required
🔹 Hardware
| Component | Quantity |
|---|---|
| Arduino Uno | 1 |
| ESP8266 WiFi Module | 1 |
| PIR Motion Sensor | 1 |
| LDR Sensor | 1 |
| DHT11 (Temp & Humidity) | 1 |
| MQ-2 Gas Sensor | 1 |
| Relay Module (4-Channel) | 1 |
| Buzzer | 1 |
| LED / Bulb | As required |
| Breadboard | 1 |
| Jumper Wires | As required |
| Power Supply | 5V |
🔹 Software
-
Arduino IDE
-
Blynk App / ThingSpeak / Firebase
-
Embedded C
⚙️ Working Principle
1️⃣ Smart Lighting
-
LDR checks ambient light
-
Light turns ON only when:
-
Motion is detected AND
-
Light level is low
-
2️⃣ Temperature Control
-
Fan turns ON automatically if temperature exceeds set value
3️⃣ Gas & Fire Safety
-
MQ-2 detects gas leakage
-
Buzzer + mobile alert activated
4️⃣ IoT Control
-
ESP8266 sends data to cloud
-
User can control devices via mobile app
🔌 Pin Connections
| Device | Arduino Pin |
|---|---|
| PIR Sensor | D2 |
| LDR | A0 |
| DHT11 | D4 |
| MQ-2 | A1 |
| Relay 1 (Light) | D5 |
| Relay 2 (Fan) | D6 |
| Buzzer | D7 |
| ESP8266 TX | D9 |
| ESP8266 RX | D10 |
💻 Arduino Code (Basic Example)
📱 IoT Platform Options
-
Blynk (Easy mobile control)
-
ThingSpeak (Graphs & analytics)
-
Firebase (Real-time database)
-
MQTT (Advanced IoT systems)
📊 Applications
-
Smart homes
-
Offices & malls
-
Hospitals
-
Colleges
-
Hotels
🌟 Advantages
✔ Energy saving
✔ Remote monitoring
✔ Increased safety
✔ Scalable & low cost





