An Arduino-based smart system that automatically controls a fan based on room occupancy and temperature.
- 👥 Detects number of people using IR sensors
- 🌡️ Monitors temperature using DHT11
- 🌀 Automatically controls fan speed (PWM)
- ⚡ Turns OFF fan when room is empty
- 📟 Displays real-time data on LCD
- Arduino (C/C++)
- Embedded Systems
- Sensors (IR, DHT11)
- I2C Communication
- PWM (Fan Control)
- Arduino Uno
- DHT11 Temperature Sensor
- 2x IR Sensors
- 16x2 I2C LCD Display
- DC Fan
- Transistor (TIP122 or MOSFET)
- Diode
- Resistors
- Jumper Wires
- IR sensors detect entry and exit of people.
- People counter is updated based on IR sensors.
- DHT11 reads the current temperature.
- Fan control:
- Turns OFF if no people are present.
- Turns ON if people are present.
- Speed adjusts based on temperature:
- 25–26°C → Low
- 26–27°C → Medium
- 27–28°C → High
- ≥28°C → Maximum
- LCD Display:
- Shows Temperature
- Shows People count


