int led = 13;
int button = 4;
void setup(){
pinMode(4,INPUT);
pinMode(13, OUTPUT);
}
void loop(){
int sbutton= digitalRead(4);
if(sbutton==1){
digitalWrite(13 , HIGH);
delay(2000);
}
else{
digitalWrite(13 , LOW);
delay(2000);
}
}