void setup() { pinMode(0, OUTPUT); pinMode(1, OUTPUT); pinMode(2, OUTPUT); pinMode(4, INPUT); } // the loop function runs over and over again forever void loop() { delay (1000); if (digitalRead(4) == HIGH){digitalWrite(0, HIGH); digitalWrite(1, HIGH); digitalWrite(2, HIGH);} delay (1000); if (digitalRead(4) == LOW){digitalWrite(0, HIGH); digitalWrite(2, HIGH); digitalWrite(1, LOW); delay (60000);delay (60000); delay (60000); delay (60000); digitalWrite(1, HIGH); digitalWrite(2, LOW); delay (60000);delay (60000); delay (60000); delay (60000); digitalWrite(2, HIGH); goto label;} label: if (digitalRead(4) == LOW) {digitalWrite(0, LOW); delay (2000);} }