Project showcase
Rainfall Measured Using Arduino

Rainfall Measured Using Arduino © CC0

Here we measure rainfall.

  • 6,674 views
  • 4 comments
  • 21 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

  • 13,185 views
  • 8 comments
  • 40 respects

DIY PC's Auto Sleep Mode Sensor

Project tutorial by Gadget Programmers

  • 2,573 views
  • 2 comments
  • 7 respects

Arduino And MQ2 Gas Sensor

Project showcase by Mahamudul Karim Khondaker

  • 13,151 views
  • 9 comments
  • 19 respects

Arduino / ESP8266 RS485 MODBUS Anemometer

Project in progress by philippedc

  • 5,247 views
  • 5 comments
  • 12 respects

Sun-Tracking Mechanism for 40W solar panel

Project showcase by LIMPINGLIM

  • 4,087 views
  • 6 comments
  • 26 respects

DHT11 Humidity + Temperature Sensor with 16x2 LCD display

Project showcase by onatto22

  • 25,279 views
  • 6 comments
  • 42 respects
Add projectSign up / Login