void setup() { Serial.begin(9600); pinMode(36,INPUT); pinMode(4, OUTPUT); pinMode(16, OUTPUT); pinMode(17, OUTPUT); Serial.print("start"); } void loop() { Serial.print(digitalRead(36)); if(digitalRead(36)){ digitalWrite(4,HIGH); // turn the LED on delay(1000); // wait for a second digitalWrite(4,LOW); // turn the LED off digitalWrite(16,HIGH); // turn the LED off delay(1000); // wait for a second digitalWrite(16,LOW); // turn the LED off digitalWrite(17,HIGH); // turn the LED off delay(1000); // wait for a second digitalWrite(17,LOW); // turn the LED off delay(1000); // wait for a second } }