int valin = 0;
int valac = A0;
void setup() {
Serial.begin(9600);
}
void loop() {
valin = analogRead(valac);
if (valin <= 100) {
Serial.println("Empty");
}
else if (valin > 100 && valin <= 250) {
Serial.println("Few water");
}
else if (valin > 250 && valin <= 300) {
Serial.println("Good water level");
}
else {
Serial.println("Full");
}
delay(5000);
}