int BUTTON_PIN=1;
int LED_PIN=2;
void setup() {
// put your setup code here, to run once:
pinMode(LED_PIN, OUTPUT);
pinMode(BUTTON_PIN, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(BUTTON_PIN)==HIGH){
digitalWrite(LED_PIN, HIGH);
delay(10000);}
else{
if(digitalRead(BUTTON_PIN)==HIGH){
digitalWrite(LED_PIN, LOW);
delay(10000);}
}
}