Project showcase
Basic Water Sensor

Basic Water Sensor

Very basic and quick usage of a water sensor.

  • 51,337 views
  • 4 comments
  • 13 respects

Components and supplies

About this project

Hi there.

This project is very basic. Anyone can do it.

void setup(){
Serial.begin(9600);     // Communication started with 9600 baud
}
void loop(){
int sensor=analogRead(A1); // Incoming analog signal read and appointed sensor
Serial.println(sensor);   //Wrote serial port
}

Let's prepare the circuit.

The water sensor has 3 output pins. These:

  • S this output goes to any analog signal on Arduino
  • + this output goes to 5v
  • - this output goes to GND

Visit omer.beden.net for other projects (Turkish language).

Code

Code snippet #1Arduino
void setup(){
Serial.begin(9600);     // Communication started with 9600 baud
}
void loop(){
int sensor=analogRead(A1); // Incoming analog signal read and appointed sensor
Serial.println(sensor);   //Wrote serial port
}

Comments

Similar projects you might like

How To Use DS18B20 Water Proof Temperature Sensor

Project showcase by IoTBoys

  • 152,678 views
  • 25 comments
  • 36 respects

Easy IOT Water Leakage Indicator

Project tutorial by Patel Darshil

  • 23,716 views
  • 3 comments
  • 21 respects

All About Water Systems: Ultrasonic/WaterFlow/Rain Sensor

Project showcase by willy

  • 7,217 views
  • 2 comments
  • 14 respects

DHT11 Temperature/Humidity Sensor

Project tutorial by Zachary Haslam

  • 173,420 views
  • 52 comments
  • 114 respects

How to Use a Soil Moisture Sensor

by MisterBotBreak

  • 88,355 views
  • 13 comments
  • 60 respects

Arduino Based Digital Temperature Sensor

Project showcase by Abishek Bhalaaji

  • 35,806 views
  • 1 comment
  • 20 respects
Add projectSign up / Login