int led=2;
int button=3;
int statusbutton=0;
void setup() {
// put your setup code here, to run once:
pinMode(2, OUTPUT);
pinMode(3, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
statusbutton=digitalRead(3);
if (statusbutton ==1){
digitalWrite(2, HIGH);
}
else{digitalWrite(2, LOW);}}