//Define the button and led pins that will be used const int button = 7; const int led =13; void setup() { //Set the led as an output pinMode(led, OUTPUT); } void loop() { //Constantly check if the button is being pushed if(digitalRead(button)){ //if button pushed make magic happen digitalWrite(led,HIGH); }else{ //do someting else digitalWrite(led,LOW); } }