int ledPin =12;// LED connected to digital pin 13//int inPin = 7; // pushbutton connected to digital pin 7int val =0;// variable to store the read valuevoidsetup(){pinMode(ledPin, OUTPUT);// sets the digital pin 13 as output}voidloop(){digitalWrite(ledPin, HIGH);// sets the LED to the button's value}