// This example code is in the public domain
const int pinLED = 13;
const int pshButton = 4;
boolean statePsh;
void setup() {
Serial.begin(9600);
pinMode(pinLED, OUTPUT);
pinMode(pshButton, INPUT);
}
void loop() {
statePsh = digitalRead(pshButton);
if(statePsh == 1){
digitalWrite(pinLED, HIGH);
}else{
digitalWrite(pinLED, LOW);
}
}