move servomotors with photoresistor

#include <Servo.h>
Servo servo1;
int photores=A0;



void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  servo1.attach(9);
  
}

void loop() {
  // put your main code here, to run repeatedly:
  
photores=analogRead(A0);
Serial.println(photores);



}

I tried many ways of doing it but I do not get the idea, that is why i have the servo declaration

here's the image of the circuit
Imgur

What does the LED do?
Although everything may appear to move at the same time, there is a process occurring.
How is the LDR's signal being used?
Does it operate the servo or does the servo just sweep from 0 to 180 and back continuously?

Yes, the LDR's signal operates the servo