Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int value=0;
- void setup()
- {
- // put your setup code here, to run once:
- pinMode(7,INPUT); //taking 7 pin input from the sensor
- Serial.begin(9600);
- }
- void loop()
- {
- // put your main code here, to run repeatedly:
- value=digitalRead(7); //value of the sensor
- Serial.println(value);
- delay(1000);
- }
Add Comment
Please, Sign In to add comment