const int LED = 7; const int Button = 8; void setup() { // put your setup code here, to run once: pinMode(LED,OUTPUT); pinMode(Button,INPUT); } void loop() { int button; button = digitalRead(Button); if(button == LOW){ digitalWrite(LED, HIGH); } else{ digitalWrite(LED, LOW); } }