#define pinButton 22
#define pinLED 15
int statusButton;
void setup() {
Serial.begin(9600);
pinMode(pinButton, INPUT);
pinMode(pinLED, OUTPUT);
}
void loop() {
Serial.println(statusButton);
statusButton = digitalRead(pinButton);
digitalWrite(pinLED, statusButton);
}