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).
Comments
Please log in or sign up to comment.