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

void loop() {
  if (!digitalRead(14) == HIGH) {
    digitalWrite(12, HIGH);
  delay(2000);
  } else {
    digitalWrite(12, LOW);
    delay(2000);
  }

  //
}
NOCOMNCVCCGNDINLED1PWRRelay Module