Project Overview
The "Hydro-Guardian IoT" is a smart agricultural framework designed to optimize the delicate balance of Hydroponic Nutrient Solutions. By combining hyper-local atmospheric sensing with a unique Optical Turbidity Sensor, this project allows urban farmers to monitor the health of their crops from any device. The system utilizes an Arduino UNO for high-accuracy local data acquisition and a NodeMCU ESP8266 to bridge that data to the ThingSpeak Cloud, enabling long-term analytical tracking of temperature, humidity, and water purity.
The workings of this tool in general are as follows, the hydro plant is placed in an aqua bottle that has been perforated, then placed in a window or open space. The DHT22 sensor is a humidity sensor and temperature where the results obtained will be displayed on the server thing speak via NodeMcu V3. Not only the results of the DHT22 but also displays the results of the LDR as a water turbidity sensor. So that we can control the turbidity of water and the humidity and the temperature around the plants.
Technical Deep-Dive
- Atmospheric Forensics (DHT22):
- Precision Sensing: Unlike the standard DHT11, the DHT22 provides a high-resolution 16-bit digital output with an accuracy of ±0.5°C and ±2% RH. The firmware implements a 2-second sampling interval to prevent "Self-Heating" effects that could skew the humidity data.
- Optical Turbidity Analysis (LDR Theory):
- Light Attenuation: Turbidity measures the cloudiness or haziness of a fluid caused by large numbers of individual particles. In this project, an LDR is positioned opposite a light source across a water-filled chamber. The Arduino measures the decrease in light intensity (attenuation); higher particle counts (turbidity) result in lower voltage at the analog pin, providing a cost-effective proxy for nutrient concentration or algae growth.
- ThingSpeak IoT Pipeline:
- RESTful Data Streams: The NodeMCU connects to the local WiFi and utilizes HTTP POST requests to send four fields of data to a specific ThingSpeak Channel.
- Channel Visualization: ThingSpeak automatically generates real-time graphs, allowing users to spot trends such as the "Evaporative Cooling" effect or the depletion of nutrient ions over time.
Engineering & Implementation
- Dual-Core Gateway Architecture:
- The Arduino UNO handles the time-critical analog sampling and local LCD management.
- The NodeMCU focuses exclusively on the network stack. This prevents the "Blocking" nature of WiFi handshake routines from interrupting the constant monitoring of the plant’s environment.
- Relay Actuation & Failsafes:
- The system includes a 5V Relay for automated pump control. If the water turbidity exceeds a certain threshold (indicating low water levels or high sediment), the Arduino can be programmed to trigger a fresh water cycle, preventing root rot.
- Solder Integrity & Waterproofing:
- Given the high-humidity environment of a hydroponic setup, the use of Lead-Free Solder and Electrical Tape is critical for preventing oxidation on jumper wire terminals. The sensors are housed in perforated casings to allow airflow while protecting the PCB from direct nutrient spray.
- Calibration Offsets:
- The LDR response is non-linear. The firmware includes a calibration map—recording "Clear Water" vs. "Nutrient Solution" values—to ensure the turbidity data is meaningful within the context of the specific crop being grown.
Conclusion
The Hydro-Guardian provides a scalable foundation for Precision Urban Farming, demonstrating that complex environmental feedback loops can be implemented using affordable, modular microcontrollers.
Smart roots, clear results: Empowering agriculture through distributed IoT intelligence.