Water sensor interfacing with Arduino circuit

Water sensor interfacing with Arduino in Proteus

Water sensor interfacing with Arduino circuit
Water sensor circuit diagram

Water sensor interfacing with Arduino in Proteus

In this article we will learn how to Interface Water sensor with Arduino UNO in proteus simulation.
In the last post we will learn how to Interface Arduino UNO with Light Intensity Meter. You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.

 

 

 

Components:

  1. Arduino UNO
  2. Water sensor
  3. LCD display
  4. Resistor Variable
  5. Capacitor (100u)
  6. Volt meter
  7. Jumper wires

Construction…

  • Connect –ve pin of Water sensor with GND
  • Connect +ve pin of Water sensor with +ve
  • Connect pin 3 of Water sensor with +ve side of Volt meter through +ve side of Capacitor 100uF
  • Connect –ve sides of capacitor and volt meter with each other and then connect them with GND
  • Connect test pin of Water sensor with signal pin of Resistor variable
  • Connect collect pin of variable with +ve
  • Connect ammeter pin of variable with –ve
  • Connect VSS, VEE, and RW pins of LCD display with each other and then connect them with GND
  • Connect VDD pin of LCD display with +ve
  • Connect RS pin of LCD display with pin 7 of Arduino UNO
  • Connect E pin of LCD display with pin 6 of Arduino UNO
  • Connect pin 5 of Arduino with D4 pin of LCD display
  • Connect pin 4 of Arduino with D5 pin of LCD display
  • Connect pin 3 of Arduino with D6 pin of LCD display
  • Connect pin 2 of Arduino with D7 pin of LCD display

Working…

Interfacing a water sensor with an Arduino is a common project in the world of electronics and microcontrollers. Water sensors are used to detect the presence or absence of water or to measure the water level

Applications…

  1. Water Level Monitoring
  2. Rainfall Measurement
  3. Soil Moisture Sensing
  4. Leak Detection
  5. Water Quality Analysis

Advantages…

  1. Cost-Effective Solution
  2. Customizability
  3. Real-time Alerts
  4. Remote Monitoring
  5. Low Power Consumption

Program Code Images…

Water sensor interfacing with Arduino
Water sensor program code
Water sensor interfacing with Arduino
Water sensor program code

Program code…

#include <LiquidCrystal.h>

 

const int analogInPin = A0;

int sensorValue = 0;

 

// Initialize the LCD with the number of columns and rows of your LCD

LiquidCrystal lcd(7, 6, 5, 4, 3, 2);

 

void setup() {

// Set up the number of columns and rows in your LCD (16×2 LCD)

lcd.begin(16, 2);

lcd.clear();

lcd.setCursor(0, 0);

lcd.print(“Sensor Value:”);

 

Serial.begin(9600);

}

 

void loop() {

sensorValue = analogRead(analogInPin);

Serial.print(“sensor = “);

Serial.println(sensorValue);

 

lcd.setCursor(0, 1);

lcd.print(”                “); // Clear the second line

lcd.setCursor(0, 1);

lcd.print(sensorValue);

 

delay(2);

}