How to Use Rain Detector with Arduino and FC-37 or YL-83 Sensor

Introduction

Today we learn How to Use Rain Detector with Arduino and FC-37 or YL-83 Sensor, The Rain Detector with Arduino using the FC-37 or YL-83 sensor is a weather monitoring system designed to detect and respond to rainfall. This project employs an Arduino UNO microcontroller, a versatile and widely-used development board, in conjunction with either the FC-37 or YL-83 rain sensor. By utilizing jumper wires and a breadboard, this setup allows for a straightforward and accessible way to create a rain detection system.

Hardware Required

You will require the following Hardware Components for interfacing the FC-37 or YL-83 Rain Sensor Module with Arduino.

Components#Buy From Amazon
Arduino UNO1Buy Link
FC-37 or YL-83 Rain Sensor1Buy Link
9v DC Adapter (Optional)1Buy Link
Jumper Wires4Buy Link
Breadboard1Buy Link

What is Rain Sensor?

A rain sensor is a device designed to detect the presence or intensity of rainfall. In the context of this project, the FC-37 and YL-83 sensors serve this purpose. These sensors typically work based on the principle of measuring the resistance between their conductive traces, which changes with the presence of water. When raindrops are detected, the resistance alters, allowing the sensor to send signals to the connected Arduino, facilitating real-time monitoring and response to rainfall conditions.

Pinout

FC-37-or-YL-83-Rain-detector-Sensor-Pinout

Pin Configuration

Pin NamePin Type
VCCPositive supply Pin
GNDGround Pin
A0Analog Pin
D0Digital Pin

Features

  1. Versatility: Compatible with both FC-37 and YL-83 rain sensors for flexibility in application.
  2. Ease of Use: Utilizes the popular and user-friendly Arduino UNO platform.
  3. Simple Setup: Requires only a few jumper wires and a breadboard, making it accessible for beginners.
  4. Real-time Monitoring: Capable of providing instantaneous feedback on rainfall conditions.

Circuit Diagram

The following circuit shows you the connection of the How to Use Rain Detector with Arduino and FC-37 or YL-83 Sensor Please make the connection carefully

Rain-detector-with-Arduino-and-FC-37-or-YL-83-sensor-circuit

Circuit Connections

ArduinoRain Sensor Module
VCC+5V Pin
GNDGND Pin
A0A0
D0D9

Installing Arduino IDE Software

First, you will require to Download the updated version of Arduino IDE Software and Install it on your PC or laptop. if you Learn How to install the Arduino step-by-step guide then click on how to install Arduino Button given Blow

Code

The code is equally simple. We simply read the state of the digital input . If the sensor is triggered, we execute the necessary actions.

//For more Projects: www.arduinocircuit.com

const int sensorPin = 9;

void setup() {
  Serial.begin(9600); //start serial port
  pinMode(pin, INPUT); //define pin as input
}
 
void loop(){
  int value = 0;
  value = digitalRead(sensorPin ); //digital pin reading
 
  if (value == LOW) {
      Serial.println("Rain detected");
  }
  delay(1000);
}

Applications

  1. Home Automation: Integrating rain sensors with smart home systems to automate actions like closing windows or triggering irrigation systems.
  2. Weather Stations: Inclusion in DIY weather stations for accurate rainfall data collection.
  3. Garden Management: Employed in gardens and agricultural settings to optimize watering schedules based on real-time rainfall information.
  4. Alert Systems: Integration into alert systems to notify users of changing weather conditions, especially in outdoor environments.

This Rain Detector with Arduino and FC-37 or YL-83 sensor provides a cost-effective and efficient solution for incorporating rain-sensing capabilities into various projects and applications.

Leave a Comment


error: