Projects

IoT-Based Smart Agriculture System Using ESP32 and Firebase

IoT-Based Smart Agriculture System Using ESP32 and Firebase

This Smart Agriculture System is designed to monitor agricultural environmental conditions in real-time while automating plant watering. Using the ESP32 microcontroller as the main brain, data from various sensors is sent directly to the cloud using Firebase Realtime Database.


Main Components & Features


- ESP32 Microcontroller: Acts as the data processing center and Wi-Fi connectivity hub.

- Environmental Sensors: Monitor soil moisture, air temperature & humidity (DHT22), light intensity (LDR), rainfall, and water level.

- Automation System (Relay & Water Pump): The 12V DC water pump turns on automatically when the soil moisture level falls below the optimal threshold.

- Firebase Realtime Database: Stores all sensor data live so it can be accessed via a mobile application or web dashboard.


System Circuit


Below is the hardware connection schematic between the sensors, ESP32, LCD, and relay module.

The circuit notes above show the connection pathways of the ESP32 GPIO pins to the DHT22 sensor, soil moisture sensor, rain sensor, light sensor, water pump relay module, and the 16x2 I2C LCD screen.


Firebase Realtime Database


Firebase Realtime Database is used to store sensor reading data and actuator (water pump) status.