Advertisement
coltonspastebin

Water Sensor

Dec 18th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. const int watersensor = A0;
  2. const int led = 5;
  3. int readValue = 0;
  4.  
  5.  
  6. void setup()
  7. {
  8. pinMode (watersensor, INPUT);
  9. Serial.begin (9600);
  10.  
  11.  
  12. }
  13.  
  14. void loop()
  15. {
  16. readValue = analogRead (watersensor);
  17. Serial.println (readValue);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement