Stufin
Home Quick Cart Profile

High Sensitivity Water Level Sensor compatible with Arduino

Buy Now

Measurement Range

0-4 meters

Sensitivity

0.1 cm

Accuracy

1% FS

Output Signal

Analog (0-5V)

Power Supply

5V DC

Current Consumption

<5mA

Operating Temperature

-20C to 80C

Storage Temperature

-40C to 100C

Cable Length

1 meter

Probe Material

Stainless Steel

Housing Material

PVC

Applications

The High Sensitivity Water Level Sensor is suitable for a wide range of applications, including

Industrial Automation

Monitoring water levels in industrial processes and systems.

Water Management

Monitoring water levels in rivers, lakes, and reservoirs.

Agriculture

Monitoring water levels in irrigation systems and livestock watering systems.

Home Automation

Monitoring water levels in tanks and reservoirs in residential applications.

Robotics and DIY Projects

Integrating with Arduino boards for water level monitoring and automation projects.

Certifications and Compliance

CE Certification

Complies with EU health, safety, and environmental protection standards.

RoHS Compliance

Complies with Restriction of Hazardous Substances in electrical and electronic equipment.

ISO 90012015: Complies with quality management system standards.

Pin Configuration

  • High Sensitivity Water Level Sensor Compatible with Arduino
  • Pin Description:
  • The High Sensitivity Water Level Sensor has 3 pins that connect to an Arduino board or other microcontrollers. Here's a detailed explanation of each pin:
  • Pin 1: VCC (Power Supply) Pin
  • Function: Power supply pin for the sensor
  • Voltage: Typically 5V (compatible with most Arduino boards)
  • Current: Maximum 20mA (dependent on the sensor's operating conditions)
  • Connection: Connect to the 5V pin on the Arduino board or a suitable power supply source
  • Pin 2: OUT (Output) Pin
  • Function: Analog output pin that provides a voltage signal proportional to the water level
  • Signal: Analog voltage signal (0-5V)
  • Output Impedance: Typically 1k
  • Connection: Connect to an analog input pin on the Arduino board (e.g., A0, A1, A2, etc.)
  • Pin 3: GND (Ground) Pin
  • Function: Ground pin for the sensor
  • Connection: Connect to the GND pin on the Arduino board or a suitable ground reference point
  • Connection Structure:
  • To connect the High Sensitivity Water Level Sensor to an Arduino board, follow this structure:
  • 1. Connect the VCC pin of the sensor to the 5V pin on the Arduino board.
  • 2. Connect the OUT pin of the sensor to an analog input pin on the Arduino board (e.g., A0).
  • 3. Connect the GND pin of the sensor to the GND pin on the Arduino board.
  • Example Connection Diagram:
  • ```
  • +---------------+
  • | Water Level |
  • | Sensor (VCC) |
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | Arduino Board |
  • | (5V Pin) |
  • +---------------+
  • +---------------+
  • | Water Level |
  • | Sensor (OUT) |
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | Arduino Board |
  • | (Analog Input |
  • | Pin, e.g. A0) |
  • +---------------+
  • +---------------+
  • | Water Level |
  • | Sensor (GND) |
  • +---------------+
  • |
  • |
  • v
  • +---------------+
  • | Arduino Board |
  • | (GND Pin) |
  • +---------------+
  • ```
  • Important Notes:
  • Make sure to connect the sensor to a suitable power supply and ground reference to ensure accurate measurements.
  • The analog output voltage signal from the sensor should be read using an analog input pin on the Arduino board.
  • Use a suitable library or programming framework to interface with the sensor and read the water level data.
  • The sensor's sensitivity and accuracy may vary depending on the application, installation, and environmental conditions.

Code Examples

High Sensitivity Water Level Sensor Compatible with Arduino
Overview
The High Sensitivity Water Level Sensor is a reliable and precise sensor designed to measure the water level in tanks, reservoirs, and other containers. It is compatible with Arduino boards and provides an analog output signal that corresponds to the water level. This sensor is ideal for various applications, including industrial automation, agricultural monitoring, and home automation.
Technical Specifications
Operating Voltage: 5V
 Operating Current: 20mA
 Sensing Range: 0-100% water level
 Output Signal: Analog (0-5V)
 Accuracy: 1% of full scale
 Response Time: < 1 second
 Connector Type: 3-pin (VCC, GND, OUT)
Pinout
VCC: 5V power supply
 GND: Ground connection
 OUT: Analog output signal
Arduino Library and Example Code
The High Sensitivity Water Level Sensor is compatible with the Arduino platform, and a dedicated library is available to simplify the integration process.
Example 1: Basic Water Level Measurement
This example demonstrates how to read the water level measurement using the High Sensitivity Water Level Sensor with an Arduino Uno board.
```c++
#include <WaterLevelSensor.h>
// Initialize the water level sensor
WaterLevelSensor waterLevelSensor(A0);
void setup() {
  Serial.begin(9600);
}
void loop() {
  // Read the water level measurement
  int waterLevel = waterLevelSensor.readWaterLevel();
// Print the water level measurement to the serial monitor
  Serial.print("Water Level: ");
  Serial.print(waterLevel);
  Serial.println(" %");
delay(1000);
}
```
Example 2: Automated Water Pump Control
This example demonstrates how to use the High Sensitivity Water Level Sensor with an Arduino Uno board to control a water pump automatically.
```c++
#include <WaterLevelSensor.h>
// Initialize the water level sensor
WaterLevelSensor waterLevelSensor(A0);
// Initialize the relay module for the water pump
const int relayPin = 2;
void setup() {
  Serial.begin(9600);
  pinMode(relayPin, OUTPUT);
}
void loop() {
  // Read the water level measurement
  int waterLevel = waterLevelSensor.readWaterLevel();
// Check if the water level is below the minimum threshold
  if (waterLevel < 20) {
    // Turn on the water pump
    digitalWrite(relayPin, HIGH);
    Serial.println("Water Pump: ON");
  } else {
    // Turn off the water pump
    digitalWrite(relayPin, LOW);
    Serial.println("Water Pump: OFF");
  }
delay(1000);
}
```
Example 3: IoT-based Water Level Monitoring
This example demonstrates how to use the High Sensitivity Water Level Sensor with an Arduino Uno board and an ESP8266 Wi-Fi module to send water level data to a remote server using HTTP requests.
```c++
#include <WaterLevelSensor.h>
#include <WiFi.h>
#include <HTTPClient.h>
// Initialize the water level sensor
WaterLevelSensor waterLevelSensor(A0);
// Initialize the Wi-Fi module
const char ssid = "your_wifi_ssid";
const char password = "your_wifi_password";
// Initialize the HTTP client
HTTPClient http;
void setup() {
  Serial.begin(9600);
// Connect to Wi-Fi
  WiFi.begin(ssid, password);
  while (WiFi.status() != WL_CONNECTED) {
    delay(1000);
    Serial.println("Connecting to Wi-Fi...");
  }
  Serial.println("Connected to Wi-Fi");
  Serial.println("Initializing HTTP client...");
}
void loop() {
  // Read the water level measurement
  int waterLevel = waterLevelSensor.readWaterLevel();
// Create a JSON object to store the water level data
  String jsonData = "{""water_level"":""" + String(waterLevel) + """}";
// Send the water level data to the remote server using HTTP requests
  http.begin("http://your_remote_server.com/upload_data");
  http.addHeader("Content-Type", "application/json");
  int responseCode = http.POST(jsonData);
  http.end();
Serial.print("Water Level: ");
  Serial.print(waterLevel);
  Serial.println(" %");
  Serial.println("Data sent to remote server...");
delay(10000);
}
```
Note: In the above examples, replace the placeholder values (`your_wifi_ssid`, `your_wifi_password`, and `http://your_remote_server.com/upload_data`) with your actual Wi-Fi credentials and remote server URL.