Project showcase
Rainfall Measured Using Arduino

Rainfall Measured Using Arduino © CC0

Here we measure rainfall.

  • 5,447 views
  • 4 comments
  • 20 respects

Components and supplies

About this project

video tutorial

Code

Arduino CodeArduino
https://plus.google.com/u/0/+MahamudulKarimKhondaker/posts/ibnrPXt8ePR
#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
void setup () {
  // initialize serial communication at 9600 bits per second:
  Serial.begin (9600);}
void loop() {
  // read the input on analog pin 0:
  int value = analogRead(A0);
  lcd.setCursor(0, 7);
  if (value > 500) {
    Serial.println("Very heavy Rain");
    lcd.print("Very heavy rain");}
  else if ((value > 300) && (value <= 500)) {
    Serial.println("AVERAGE Rain");
lcd.print("Average Rain");
lcd.print("       "); }
  else{
    Serial.println("Dry Weather");
    lcd.print("Dry Wather");
    lcd.print("          ");}
  delay(100);}

Schematics

arduino-liquid-level-sensor-circuit_7rAv7vIrSO.png
Arduino liquid level sensor circuit 7rav7virso

Comments

Similar projects you might like

Temperature and Humidity Logger (Using Arduino)

Project showcase by lmsousa

  • 7,770 views
  • 3 comments
  • 34 respects

Arduino And MQ2 Gas Sensor

Project showcase by Mahamudul Karim Khondaker

  • 4,444 views
  • 6 comments
  • 13 respects

DIY PC's Auto Sleep Mode Sensor

Project tutorial by Team Gadget Programmers

  • 1,986 views
  • 2 comments
  • 7 respects

DHT11 Humidity + Temperature Sensor with 16x2 LCD display

Project showcase by onatto22

  • 9,054 views
  • 1 comment
  • 17 respects

Simple Ultrasonic Distance Measurer With LCD Display

Project showcase by onatto22

  • 6,087 views
  • 4 comments
  • 22 respects

Sun-Tracking Mechanism for 40W solar panel

Project showcase by LIMPINGLIM

  • 2,039 views
  • 1 comment
  • 23 respects
Add projectSign up / Login