Hey guy, welcome back to the techatronic. In this article i am goig to show how to make this Viral Science Project Rain Detection System. This project is inn Trending right now. many influencers share this project. so, there a lot of number of Students and hobbiest who want to make this project but they are not getting the eough information. That’s why we brought this project in limelight and decide to make a tutorial with full detail like code & Circuit.

Itroduction:-
Here we are making a house with the shade outside and there a rode attached to the motor which can be operate accordingly. there we have attached a rain drop sensor at the top of the house. as the drop of rain fall on the sensor. the sensor send the instruction to the controller and controller operate the Servo motor. which consist the rode or pole.
Show the working of this project is very simple and also to make this project is very easy. That’s why we have given all the steps here like how to make this project and how to do the code and what is the circuit diagram which is required to make this project. So where using sensor a controller and a motor combination of all can complete this project so before start the secretary you have to make a small home or you can purchase or bhaiya artificial home. And you can attach all the things according to the given pictures about.
Required many hardware component , we read a software to program the controller and the controller. Development board which can you program is Delhi so we have software ordinary which can use to program this Arduino. So here we are going to share all the things how to do this project easily so first of all we would like to share what are the component required to make this awesome project for first of all we required some cardboard which can be helpful for make the small home where we have to kept all the sensors and motors and controller.
To make a cardboard home is very easy which can be referred by our video we have uploaded a video to on YouTube where we have shared all the details how to make the cardboard home how to connect the sensor and how to connect the motor and how to attach the rod with cloth so all the required things all the required material and how to do this project step by step we have given in our website as well as or YouTube channel so we have shared the link also you can see the full video and make your own project by this tutorial.
Required Material.
Buy Full Rain Detection Kit:- Buy Now
Arduino Uno:- microcontroller development board which consist 14 digital input output pins 6 analogue pins are XT explain which can support the serial communication SBI pins which can support the SBI protocol and SDK SDA pins which can support the I2C communication and some Power pins like vcc 5 volt is 3.3 voltage ground etc. Basically I don’t know is a brain of this project it can decide to react whether the signal is high or low. Also the server motor can’t be Run without any signal to the servo motor and it can operate easily servo motor.
Rain sensor:- in this viral science project rain detection the rain sensor is the main component so when and drop fall on the sensor it can sensist basically the sensor is made up by a variable resistance which made by the conductivity material so when the water drops fall on the sensor the conductivity of the sensor maybe very so from this answer we can get the information about the drop by variation in resistance
Servo Motor:-
Server motor is a special kind of motor which can rotate by giving a signal like in degrees so we can operate this motor as we required how much with the rotation. Like if we want to rotate the server motor 90 degree we can rotate by 90 degree. So in this project we required the server motor to rotate 120 degree and we have made the code to rotate the server motor 20 degree.
Now after all the information we need a circuit diagram so which can help us to connect the sensor and server monster with the arduino so here we are sharing the circuit diagram of this viral science project rain detection.
viral science project rain detection Circuit Diagram

The Connections are Very Simple as given inn the above diagram.
Now the time is to make the Code.
viral science project rain detection Arduino Code
#include <Servo.h> // servo library
Servo myservo;
int val;
void setup() {
myservo.attach(3);
pinMode(A0, INPUT);
Serial.begin(9600);
}
void loop() {
val = analogRead(A0);// connect A0 pin to potentiometer
Serial.println(m);
if(m<=600)
{
myservo.write(90);
delay(500);
}
else
{
myservo.write(0);
delay(500);
}
}
So here we have shared the code for Viral Science Project Rain Detection to. Only you have to do copy and paste this code into your ear in ID and upload in your day no and after uploading the code you can check your connections and verify them. So now you have completed your project first we have covered the required component for this project after that we have made the circuit diagram so that step will help you to connect all the things together and after that we have to upload the given code into the so it can react as we want. If you still have any doubt or problem you can ask us in the comment section and if you have any problem in uploading the code we have made a tutorial on our side so you can check by the link how to upload the code given here.The video is dhared below. in this video we have shared all the detail which can definately help you.
Video sample is here.