Guest User

Untitled

a guest
Feb 20th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. int value=0;
  2. void setup()
  3. {
  4. // put your setup code here, to run once:
  5. pinMode(7,INPUT); //taking 7 pin input from the sensor
  6. Serial.begin(9600);
  7. }
  8.  
  9. void loop()
  10. {
  11. // put your main code here, to run repeatedly:
  12. value=digitalRead(7); //value of the sensor
  13. Serial.println(value);
  14. delay(1000);
  15. }
Add Comment
Please, Sign In to add comment