int led = 7;
int button = 6;
int buttonstate = 0;
void setup() {
pinMode(button, INPUT) ;
pinMode(led, OUTPUT);
}
void loop() {
buttonstate = digitalRead(button) ;
if (buttonstate==HIGH)
{digitalWrite(led, HIGH); }
else
{digitalWrite(led , LOW) ; }
}