int LEDred = 32; //declare the pin
int LEDblue = 33; //declare the pin
int PB=4;//push button
int Buzzer = 18;
int NCT_sensor=26;

int PB_value=0;
int NCT_sensor_value=0;
void setup() {

  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");
  pinMode(LEDred,OUTPUT);
  pinMode(LEDblue,OUTPUT);
  pinMode(PB,INPUT);
  pinMode(Buzzer,OUTPUT);
  pinMode(NCT_sensor,INPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  PB_value=digitalRead(PB);
  NCT_sensor_value=analogRead(NCT_sensor);
  Serial.println(NCT_sensor_value);
  if(PB_value==1)
  {
    digitalWrite(LEDred,HIGH);
    delay(500); // this speeds up the simulation
    digitalWrite(LEDblue,HIGH);
    delay(500); // this speeds up the simulation
  }
  else
  {
    digitalWrite(LEDred,LOW);
    delay(500); // this speeds up the simulation
    digitalWrite(LEDblue,LOW);
    delay(500); // this speeds up the simulation
  }

  if(NCT_sensor_value>1534)
  {
    tone(Buzzer,5000);
  }
  else
  {
    noTone(Buzzer);
  }
}
Loading
esp32-devkit-c-v4
led1:A
led1:C
r1:1
r1:2
led2:A
led2:C
r2:1
r2:2
btn1:1.l
btn1:2.l
btn1:1.r
btn1:2.r
r3:1
r3:2
bz1:1
bz1:2
bz2:1
bz2:2
ntc1:GND
ntc1:VCC
ntc1:OUT