The Smart Irrigation System is an IoT-based project designed to automate and optimize the irrigation process while maintaining a suitable environment for plants. This system uses multiple sensors and actuators to monitor and control soil moisture, temperature, and humidity. It provides real-time updates through a web application and uploads data to the cloud for analytics.
- Automated Irrigation:
- Monitors soil moisture levels and activates a pump to water plants when needed.
- Environmental Control:
- Activates a fan to cool down the environment if the temperature is too high.
- Turns on a heater to prevent frost damage during low temperatures.
- Web Application:
- Displays real-time status of:
- Soil moisture percentage.
- Temperature and humidity levels.
- Pump Status.
- Displays real-time status of:
- Cloud Integration:
- Data is uploaded to ThingSpeak for historical analysis and visualization.
- Hardware:
- ESP32 (microcontroller)
- DHT11 Sensor (temperature and humidity)
- Soil Moisture Sensor
- Pump, Fan, and Heater
- Software:
- Web Application for real-time monitoring
- ThingSpeak for cloud data analytics
- The system monitors environmental conditions using IoT sensors.
- Based on predefined thresholds:
- Activates the pump when soil moisture is below the threshold.
- Triggers the fan to cool the surroundings if the temperature is high.
- Turns on the heater to maintain a suitable temperature during colder conditions.
- Displays real-time data on the web interface.
- Uploads sensor data to ThingSpeak for advanced insights.
- Connect the sensors (DHT11 and soil moisture) to the ESP32 microcontroller.
- Attach the pump, fan, and heater to their respective output pins.
- Ensure a stable power supply for all components.
- The project file contains fully commented code to help you set up the system step-by-step.
- Follow these steps to configure the code:
Code Setup
- Open the code in the Arduino IDE or your preferred editor.
- Update the following sections in the code:
- Wi-Fi Credentials: Replace with your Wi-Fi SSID and password.
- ThingSpeak API Key: Replace with your ThingSpeak Write API key.
- Threshold Values: Adjust the thresholds for soil moisture, temperature, and humidity as per your requirements.
- Upload Code: Connect your ESP32 to your computer and upload the code using the Arduino IDE.