const int ledPin= 12; const int inputPin= 13; void setup(){ pinMode(ledPin, OUTPUT); pinMode(inputPin, INPUT); } void loop(){ int value= digitalRead(inputPin); if (value == HIGH) { digitalWrite(ledPin, HIGH); delay(60000); digitalWrite(ledPin, LOW); } else { digitalWrite(ledPin, LOW); } }