int i = 0;
void setup() {
// put your setup code here, to run once:
pinMode(A5, INPUT_PULLUP);
pinMode(8,OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
while(digitalRead(A5) == LOW){
digitalWrite(8, HIGH);
delay(500);
digitalWrite(8, LOW);
delay(500);
}
}