In this tutorial, we are going to discuss Rain Detection Alarm System using AtTiny85

The weather has been known to be unpredictable. Although, rain is a source of affection for humans and soothes the soul of a person. But sometimes unpleasant things happen if we get no alert. As a result, it may put a lot of things at risk. Therefore the rain sensor was created so that people can get notified when it rains. It is also found in electrical shutters and windows. This sensor is also used in the automotive industry for car applications, among other things. Therefore in this article, we are going to make. Rain Detection Alarm System using AtTiny85.

PCBWay commits to meeting the needs of its customers from different industries in terms of quality, delivery, cost-effectiveness, and any other demanding requests. As one of the most experienced PCB manufacturers in China. They pride themselves to be your best business partners as well as good friends in every aspect of your PCB needs.

pcbway2.JPG
        void setup() {
  //Serial.begin(9600);//enable serial monitor
  pinMode(4, OUTPUT);//define LED pin
}
void loop() {
  int value = analogRead(A3);//read value
  //Serial.print1n("Value : ");
  //Serial.println(value);
  if (value < 300) {//check condition
    digitalWrite(4, HIGH);
   //Serial.print1n("Heavy rain  LED on ");
  } else {
    digitalWrite(4, LOW);
  }
}
    
Rain-Sensor-Alarm-Circuit.jpg
AFZAL REHMANI

Categories