Esp32 with ldr sensor

Hi all
Can any one trll why my code doesn’t work ;
i wont to connect ldr sensor to esp32
image
but it dosent work the outlight pin dosent give me low why

const int ldr =23;
const int outlight = 25;
void ldrlamp();
void setup{
  pinMode(ldr, INPUT);
  pinMode(outlight, OUTPUT);}
void loop() {
  ldrlamp();
}
void ldrlamp(){
  if(digitalRead(ldr)==1){
    digitalWrite(outlight, LOW);

  }else{
    digitalWrite(outlight, HIGH);

  }
}

You may need to adjust the light treshhold of the module. The blue box with the screwdriver hole is made for that. It adjusts the comparator voltage (i.e,. the LDR module’s output). Try turning turning it a bit to find a good threshhold between “light” and “no light”.