byte led = 13;
byte pushbutton = 8;
unsigned long delaytime = 1000;
int storeValue;
void setup()
{
Serial.begin(9600);
pinMode(led, OUTPUT);
pinMode(pushbutton, INPUT);
}
void loop()
{
storeValue = digitalRead(pushbutton);
Serial.println(storeValue);
if(storeValue == 1){
digitalWrite(led , 1);
}
else{
digitalWrite(led , 0);
}
}