

The Zakir Rain and Snow Sensor (Part ID: Rain) is a versatile environmental sensor designed to detect the presence of rain or snow. It is commonly used in weather monitoring systems, smart irrigation systems, and automated wiper control in vehicles. The sensor operates by detecting changes in conductivity on its surface when water or snow comes into contact with it.
This sensor is ideal for applications requiring real-time weather condition monitoring and can be easily integrated into microcontroller-based systems such as Arduino, Raspberry Pi, or other embedded platforms.








The Zakir Rain sensor has a 3-pin interface for easy connection to microcontrollers.
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (3.3V to 5V DC) |
| 2 | GND | Ground connection |
| 3 | OUT | Output signal (Digital or Analog, depending on the mode of operation) |
Below is an example of how to connect and use the Zakir Rain sensor with an Arduino UNO.
// Example code for Zakir Rain Sensor with Arduino UNO
// This code reads both digital and analog outputs from the sensor
// and prints the results to the Serial Monitor.
const int digitalPin = 2; // Digital output pin from the sensor
const int analogPin = A0; // Analog output pin from the sensor
void setup() {
pinMode(digitalPin, INPUT); // Set digital pin as input
Serial.begin(9600); // Initialize serial communication
}
void loop() {
int digitalValue = digitalRead(digitalPin); // Read digital output
int analogValue = analogRead(analogPin); // Read analog output
// Print the sensor readings to the Serial Monitor
Serial.print("Digital Output: ");
Serial.println(digitalValue);
Serial.print("Analog Output: ");
Serial.println(analogValue);
// Add a delay to avoid flooding the Serial Monitor
delay(1000);
}
No Output Signal:
Inconsistent Readings:
Analog Output Not Changing:
Q: Can this sensor detect humidity?
A: No, the Zakir Rain sensor is designed to detect rain or snow, not ambient humidity.
Q: Is the sensor waterproof?
A: The detection surface is water-resistant, but the connections should be properly waterproofed for outdoor use.
Q: Can I use this sensor with a 3.3V microcontroller?
A: Yes, the sensor operates within a voltage range of 3.3V to 5V, making it compatible with 3.3V systems.
Q: How do I calibrate the sensor?
A: The sensor does not require calibration. However, you can adjust the sensitivity by using the onboard potentiometer (if available).