void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");
  pinMode(5, INPUT);
  pinMode(26, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  delay(10); // this speeds up the simulation
  if(digitalRead(5) == HIGH){
    digitalWrite(26, HIGH);
    Serial.println("輸入電位為HIGH");
  }
  else{
    digitalWrite(26, LOW);
    Serial.println("輸入電位為LOW");

  }
  delay(500);
}