Project showcase
Rain Warning Display on Mobile for your Home Garden

Rain Warning Display on Mobile for your Home Garden © GPL3+

A system that warns for unexpected rains to help out your garden. The system displays real time values on mobile.

  • 9,241 views
  • 7 comments
  • 33 respects

Components and supplies

Apps and online services

About this project

Recently I bought a rain sensor for hooking it up to my arduino. I have a home garden and watering it in my area is troublesome. I live in an area where we get unexpected rains. So I wanted to make a system that would check for rain on all times and alert me whenever it rains. The system notifies me on my mobile and shows the intensity of rain on my screen.

Rain sensors are used in the detection of water beyond what a humidity sensor can detect.

How it works:

The rain sensor detects water that completes the circuits on its sensor boards' printed leads. The sensor board acts as a variable resistor that will change from 100k ohms when wet to 2M ohms when dry. In short, the wetter the board the more current that will be conducted.

Pins:

A0.......... Analog output

D0......... Digital output

GND..... Ground

VCC...... Positive voltage (input: 5v for analog 3.3v for Digital.)

Loop Pins:

+ .......... Sensor board hookup A

- .......... Sensor board hookup B

Happy Hacking :)

Code

Smart GardenArduino
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
#include <SimpleTimer.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "";


WidgetLCD lcd(V1);   // LCD Widget
int nRainIn = A1;
int nRainDigitalIn = 2;
int nRainVal;
boolean bIsRaining = false;
String strRaining;


void setup() {
  Serial.begin(9600);
  Blynk.begin(auth);      // Start Blynk server
  pinMode(2,INPUT);
  while (Blynk.connect() == false) {
    // Wait until connected
  }
}
void loop() {
   Blynk.run();
  
  nRainVal = analogRead(nRainIn);
  bIsRaining = !(digitalRead(nRainDigitalIn));
  
  if(bIsRaining){
    strRaining = "YES";
  }
  else{
    strRaining = "NO";
  }
  
  Serial.print("Raining?: ");
  Serial.print(strRaining);  
  Serial.print("\t Moisture Level: ");
  Serial.println(nRainVal);
  Blynk.virtualWrite(3, nRainVal);
  lcd.clear();
  if (nRainVal< 550)
  {
       lcd.clear(); //Use it to clear the LCD Widget
  lcd.print(4, 0, "Raining"); // use: (position X: 0-15, position Y: 0-1, "Message you want to print")
  lcd.print(4, 1, "Heavily!"); }
  if (nRainVal> 700 && nRainVal < 900)
  {
      lcd.clear(); //Use it to clear the LCD Widget
  lcd.print(4, 0, "Rain"); // use: (position X: 0-15, position Y: 0-1, "Message you want to print")
  lcd.print(4, 1, "Warning!"); } 
   
  delay(200);

}

Schematics

Rain sensor
Rain sensor module arduino hookup

Comments

Similar projects you might like

Room temperature sensor with display on Mobile

Project showcase by Kaustubh Agarwal

  • 30,171 views
  • 9 comments
  • 63 respects

Using the YL-39 + YL-69 Soil Humidity Sensor with Arduino

Project tutorial by Sorin Trimbitas

  • 33,355 views
  • 6 comments
  • 20 respects

Smart Garden

Project showcase by patel Dipen

  • 40,927 views
  • 18 comments
  • 88 respects

DHT11 Humidity + Temperature Sensor with 16x2 LCD display

Project showcase by onatto22

  • 28,418 views
  • 6 comments
  • 44 respects

Simple Ultrasonic Distance Measurer With LCD Display

Project showcase by onatto22

  • 13,286 views
  • 4 comments
  • 34 respects

College Faculty DashBoard

Project showcase by Kaustubh Agarwal

  • 4,709 views
  • 4 comments
  • 27 respects
Add projectSign up / Login