Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Water Sensor: Examples, Pinouts, and Specs

Image of Water Sensor
Cirkit Designer LogoDesign with Water Sensor in Cirkit Designer

Introduction

The DFR XKC-Y25-T12V Water Sensor is a reliable and efficient device designed to detect the presence of water. It is commonly used in applications such as leak detection, water level monitoring, and environmental moisture sensing. This sensor operates on a non-contact principle, making it ideal for situations where direct contact with water is not desirable. Its compact design and ease of integration make it suitable for a wide range of projects, from home automation to industrial systems.

Explore Projects Built with Water Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino-Controlled Bluetooth Water Sensor with Servo and LED Indicators
Image of embeded circuit: A project utilizing Water Sensor in a practical application
This is a microcontroller-based system designed to monitor water presence using a sensor and communicate wirelessly via Bluetooth. It includes visual indicators (LEDs) and a servo motor for responsive actions, all controlled by an Arduino UNO.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO Flood Management System with Ultrasonic Sensor and Wi-Fi Connectivity
Image of Flood1: A project utilizing Water Sensor in a practical application
This circuit is a flood management system that uses an Arduino UNO to monitor water levels, temperature, and humidity. It employs an HC-SR04 ultrasonic sensor for distance measurement, a DHT11 sensor for temperature and humidity, and displays the data on a 16x2 I2C LCD. Additionally, it includes a piezo buzzer and LEDs to provide alerts when water levels exceed a safety threshold.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino-Powered GSM Water Quality Monitoring and Pump Control System
Image of Hydroponics System Schematic Wiring Diagram: A project utilizing Water Sensor in a practical application
This is a sensor and control system with remote communication capabilities. It monitors temperature, pH levels, and water levels, and controls a water pump based on the float switch status. Data can be accessed and the system can be controlled remotely via Bluetooth and GSM modules connected to two Arduino UNO microcontrollers.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and ESP8266-Based Smart Water Monitoring System with Wi-Fi Connectivity
Image of automatic water leak detection: A project utilizing Water Sensor in a practical application
This circuit monitors water pressure and flow using a Gravity Analog Water Pressure Sensor and a water flow sensor, interfaced with an Arduino UNO. The Arduino UNO processes the sensor data and communicates with an ESP8266 module for potential wireless data transmission, all powered by a 5V adapter.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Water Sensor

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of embeded circuit: A project utilizing Water Sensor in a practical application
Arduino-Controlled Bluetooth Water Sensor with Servo and LED Indicators
This is a microcontroller-based system designed to monitor water presence using a sensor and communicate wirelessly via Bluetooth. It includes visual indicators (LEDs) and a servo motor for responsive actions, all controlled by an Arduino UNO.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Flood1: A project utilizing Water Sensor in a practical application
Arduino UNO Flood Management System with Ultrasonic Sensor and Wi-Fi Connectivity
This circuit is a flood management system that uses an Arduino UNO to monitor water levels, temperature, and humidity. It employs an HC-SR04 ultrasonic sensor for distance measurement, a DHT11 sensor for temperature and humidity, and displays the data on a 16x2 I2C LCD. Additionally, it includes a piezo buzzer and LEDs to provide alerts when water levels exceed a safety threshold.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of Hydroponics System Schematic Wiring Diagram: A project utilizing Water Sensor in a practical application
Arduino-Powered GSM Water Quality Monitoring and Pump Control System
This is a sensor and control system with remote communication capabilities. It monitors temperature, pH levels, and water levels, and controls a water pump based on the float switch status. Data can be accessed and the system can be controlled remotely via Bluetooth and GSM modules connected to two Arduino UNO microcontrollers.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of automatic water leak detection: A project utilizing Water Sensor in a practical application
Arduino UNO and ESP8266-Based Smart Water Monitoring System with Wi-Fi Connectivity
This circuit monitors water pressure and flow using a Gravity Analog Water Pressure Sensor and a water flow sensor, interfaced with an Arduino UNO. The Arduino UNO processes the sensor data and communicates with an ESP8266 module for potential wireless data transmission, all powered by a 5V adapter.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Leak detection in homes, offices, and industrial facilities
  • Water level monitoring in tanks and reservoirs
  • Moisture detection in agricultural and environmental systems
  • Smart home automation for flood prevention

Technical Specifications

The following table outlines the key technical details of the DFR XKC-Y25-T12V Water Sensor:

Parameter Specification
Operating Voltage 5V to 12V DC
Operating Current ≤ 5mA
Output Signal High/Low digital signal
Detection Range 0-20mm (non-contact detection)
Response Time ≤ 500ms
Operating Temperature -20°C to 80°C
Dimensions 28mm x 20mm x 10mm
Waterproof Rating IP67

Pin Configuration

The XKC-Y25-T12V has a 3-pin interface. The pinout is as follows:

Pin Name Description
1 VCC Power supply input (5V to 12V DC)
2 GND Ground connection
3 OUT Digital output signal (High when water is detected)

Usage Instructions

How to Use the Water Sensor in a Circuit

  1. Power the Sensor: Connect the VCC pin to a 5V or 12V DC power source and the GND pin to the ground of your circuit.
  2. Connect the Output: Attach the OUT pin to a digital input pin of your microcontroller (e.g., Arduino UNO) or to an external circuit for signal processing.
  3. Position the Sensor: Place the sensor near the area where water detection is required. Ensure the sensor is within the specified detection range (0-20mm) of the water surface or source.
  4. Read the Output: Monitor the OUT pin. The output will be HIGH (logic 1) when water is detected and LOW (logic 0) when no water is present.

Important Considerations and Best Practices

  • Non-Contact Detection: Ensure the sensor is not submerged in water. It is designed for non-contact detection only.
  • Power Supply: Use a stable power source within the specified voltage range to avoid damage to the sensor.
  • Environmental Conditions: The sensor is rated for operation in temperatures between -20°C and 80°C. Avoid using it in environments outside this range.
  • Signal Processing: If the sensor output is noisy, consider adding a pull-down resistor or a capacitor to stabilize the signal.

Example: Connecting to an Arduino UNO

Below is an example of how to connect and use the XKC-Y25-T12V Water Sensor with an Arduino UNO:

Circuit Diagram

  1. Connect the VCC pin of the sensor to the 5V pin on the Arduino.
  2. Connect the GND pin of the sensor to the GND pin on the Arduino.
  3. Connect the OUT pin of the sensor to digital pin 2 on the Arduino.

Arduino Code

// Water Sensor Example Code for Arduino UNO
// This code reads the output of the XKC-Y25-T12V water sensor and prints
// the status to the Serial Monitor.

const int waterSensorPin = 2; // Digital pin connected to the sensor's OUT pin
int waterDetected = 0;        // Variable to store the sensor's output

void setup() {
  pinMode(waterSensorPin, INPUT); // Set the sensor pin as input
  Serial.begin(9600);            // Initialize serial communication
}

void loop() {
  waterDetected = digitalRead(waterSensorPin); // Read the sensor output

  if (waterDetected == HIGH) {
    Serial.println("Water detected!"); // Print message if water is detected
  } else {
    Serial.println("No water detected."); // Print message if no water is detected
  }

  delay(500); // Wait for 500ms before reading again
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. Sensor Not Detecting Water

    • Cause: The sensor is placed too far from the water source.
    • Solution: Ensure the sensor is within the specified detection range (0-20mm).
  2. False Positives

    • Cause: Electrical noise or interference in the circuit.
    • Solution: Add a pull-down resistor or a capacitor to stabilize the output signal.
  3. No Output Signal

    • Cause: Incorrect wiring or insufficient power supply.
    • Solution: Double-check the connections and ensure the power supply voltage is within the 5V to 12V range.
  4. Sensor Overheating

    • Cause: Operating the sensor outside the specified voltage range.
    • Solution: Use a regulated power supply to prevent overvoltage.

FAQs

  1. Can the sensor detect other liquids besides water?

    • The sensor is optimized for water detection. It may not work reliably with other liquids.
  2. Is the sensor waterproof?

    • Yes, the sensor has an IP67 rating, making it resistant to water exposure. However, it is designed for non-contact detection and should not be submerged.
  3. Can I use the sensor with a 3.3V microcontroller?

    • The sensor requires a minimum operating voltage of 5V. Use a level shifter if interfacing with a 3.3V system.
  4. What is the maximum detection range?

    • The sensor can detect water up to 20mm away from its surface.

By following this documentation, you can effectively integrate the DFR XKC-Y25-T12V Water Sensor into your projects for reliable water detection and monitoring.