int btn = 12;
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
pinMode(btn, INPUT);
}
int lastState = HIGH;
void loop() {
int btn_value = digitalRead(12);
Serial.println(btn_value);
delay(500); // this speeds up the simulation
}