Introduction: Interfacing Arduino With Rain Sensor

About: I AM A BEGINNER WITH ARDUINO BUT ENTERTED IN THIS FIELD WITH ENTHUSIASM

Hi there!

In this tutorial I am gonna show how can you interface rain sensor with Arduino Uno or any. Afterward, I will add servo in the same setup and servo will act as sweeper. Whenever it receive data from from rain sensor, it will get active and start functioning

Step 1: MATERIAL REQUIRED

As always the first step is the basic requirement. So here are the following material requirement

1.Arduino nano

2.Some jumper wire

3.A breadboard

4.Rain sensor

5.Batteries

6.1602 LCD with i2c module

Step 2: WIRES AND CONNECTIONS

First of all we need to setup a basic hardware including all the wiring and connection. See the attached pictures for careful wiring.

ARDUINO====RAIN SENSOR

GND========GND

5V==========VCC

A0==========A0


//////////////////////////////////////////

ARDUINO====LCD 1602

GND========GND

5V==========VCC

A5==========SCL

A4==========SDA

Follow the above sequence for wiring.


Step 3: SKETCH AND LIBRARY

After completing all the setup, Now its time to upload the code.

Don't forget to include the required libraries.

For better understanding visit my Youtube channel:

Step 4: OVERVIEW

See the above images for basic mind mapping.

Her you can see that the LCD is changing its display according to the data received or amount of raining.

Here you will find sketch and libraries: check description box

NOW YOUR PROJECT IS COMPLETED.
ENJOY!

HAPPY CREATION!