#define RELAY 2

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

void loop() {
  // put your main code here, to run repeatedly:
  digitalWrite(RELAY, HIGH);
  if (digitalRead(RELAY) == 1) {
    Serial.println("LED: ON");
  }
  delay(500);
  digitalWrite(RELAY, LOW);
  if (digitalRead(RELAY) == 0) {
    Serial.println("LED: OFF");
  }
  delay(500); // this speeds up the simulation
}
NOCOMNCVCCGNDINLED1PWRRelay Module