int led = 5 ;// sohel is the name for my first led
int button = 14 ; // button is name for my push button
int buttonState = 0; // it declares the initial state of push button
void setup()
{
pinMode (led, OUTPUT);
pinMode (button, INPUT);
}
void loop()
{
buttonState = digitalRead(14);
if(buttonState == HIGH)
{
digitalWrite(led, HIGH);
delay(1000);
}
else{
digitalWrite(led, LOW);
}
}