Arduino Uno (or Nano)
Raindrop Sensor Module
Green LED (for dry waste)
Red LED (for wet waste)
Resistors (220Ω for LEDs)
Jumper Wires
Breadboard (optional)
VCC → 5V on Arduino
GND → GND
AO (Analog Output) → A0 on Arduino
Red LED (Wet):
Anode (+) → Digital Pin 8 (via 220Ω resistor)
Cathode (–) → GND
Green LED (Dry):
Anode (+) → Digital Pin 9 (via 220Ω resistor)
Cathode (–) → GND
CODES ARE BELOW
int sensorPin = A0; Â Â // Raindrop sensor analog output
int redLED = 8; Â Â Â Â // Wet waste indicator
int greenLED = 9; Â Â Â // Dry waste indicator
void setup() {
  pinMode(redLED, OUTPUT);
  pinMode(greenLED, OUTPUT);
  Serial.begin(9600);
}
void loop() {
  int sensorValue = analogRead(sensorPin);
  Serial.print("Sensor Value: ");
  Serial.println(sensorValue);
  if (sensorValue < 500) { // Wet waste (more water)
    digitalWrite(redLED, HIGH);
    digitalWrite(greenLED, LOW);
  } else { // Dry waste
    digitalWrite(redLED, LOW);
    digitalWrite(greenLED, HIGH);
  }
  delay(500);
}
The Raindrop sensor detects moisture.
If the sensor detects wetness (value < 500), the red LED lights up.
If it's dry (value ≥ 500), the green LED lights up.
STAY CONNECTED FOR EXITING PROJECTS
Hey students! đź‘‹
Thanks for stopping by! This page is getting a fresh update and will soon be filled with amazing new science projects, DIY kits, and learning tools designed just for YOU.
We’re working hard to bring you:
🤖 Cool Arduino projects you can build yourself
đź’ˇ Fun and simple experiments to try at home or school
🛠️ DIY kits to learn electronics, coding, and sensors
🎓 Tips, tutorials, and guides to boost your STEM skills
🏆 Challenges and quizzes to test your knowledge
Whether you love robotics, want to learn coding, or just enjoy building things with your hands, there’s something exciting coming your way.
✨ Stay tuned and keep checking back—you won’t want to miss what’s next!
In the meantime, check out our YouTube channel for awesome tutorials, or visit other parts of the Kunal Science Project website for inspiration.
Keep creating. Keep learning. Keep exploring. 🔬🌟