Instead of staring at your plants and guessing, why not let a sensor do the talking? With just a soil moisture sensor and a tiny Arduino board, we can measure the water content of the soil and give instant feedback using colored light.
Red light → Soil is too dry, time to water!
- Red light → Soil is too dry, time to water!
Green light → Soil moisture is just right.
- Green light → Soil moisture is just right.
Blue light → Soil is overly wet, hold off watering.
- Blue light → Soil is overly wet, hold off watering.
It’s like giving your plants their own traffic light system 🚦.
🔧 How It WorksThe soil moisture sensor reads how much water is present in the soil.
- The soil moisture sensor reads how much water is present in the soil.
The Arduino converts this raw sensor value into a percentage (0–100%).
- The Arduino converts this raw sensor value into a percentage (0–100%).
Depending on the reading, the RGB LED changes color to visually indicate the soil’s condition.
- Depending on the reading, the RGB LED changes color to visually indicate the soil’s condition.
The readings are also printed to the Serial Monitor for debugging and calibration.
- The readings are also printed to the Serial Monitor for debugging and calibration.
I tested it with three simple experiments:
Dry soil (no water) → The sensor reading was high, and the LED glowed red.
- Dry soil (no water) → The sensor reading was high, and the LED glowed red.
Moist soil (moderately watered) → The LED turned green, signaling healthy conditions.
- Moist soil (moderately watered) → The LED turned green, signaling healthy conditions.
Wet soil (after heavy watering) → The LED switched to blue, showing the soil was too wet.
- Wet soil (after heavy watering) → The LED switched to blue, showing the soil was too wet.
This basic project can be expanded in many exciting directions:
Hook it up to a relay + water pump for automatic irrigation.
- Hook it up to a relay + water pump for automatic irrigation.
Send data to the cloud using Wi-Fi/Bluetooth modules.
- Send data to the cloud using Wi-Fi/Bluetooth modules.
Add an OLED display to show real-time moisture percentage.
- Add an OLED display to show real-time moisture percentage.
What started as a fun weekend build turned into a useful gardening companion. Now, instead of guessing when to water, I just look at the LED.
Comments