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

void loop() {
  // put your main code here, to run repeatedly:
  delay(1000); // this speeds up the simulation
 int x = analogRead(33);
//  int y = digitalRead(33);
  Serial.println(x);
  // Serial.println(y);
  if(x == 4095){
     z = 1;
  }
  else{
     z = 0;
  }
  Serial.println(z);
}
NOCOMNCVCCGNDINLED1PWRRelay Module