int boton = 23;
void setup() {
// put your setup code here, to run once:
Serial.begin(96000);
pinMode(boton, INPUT_PULLDOWN);
}
void loop() {
int estadoBoton;
estadoBoton = digitalRead(boton);
delay(300); // this speeds up the simulation
if(estadoBoton == HIGH);
Serial.println("boton pulsado");
}