Servo controlling LED

Im trying to make an automated book-lamp that turns on as the servos extend the light arm. The basic code so far runs with 1 servo and a photo-resistor that indicates when the book has been taken off.

// Step 1 Booklight project

#include <Servo.h>
Servo myservo;
int pos = 0;
int lightPin = 0;
int ledPin = 7;

void setup() {
  //Servo attached to pin 9
  myservo.attach(9);
}

void loop() {
  //read from photoresistor
  int lightLevel = analogRead(lightPin);
  
  lightLevel = map(lightLevel, 0, 1023, 0, 359);  // 10bit pin, servo limit of 360
  pos = constrain(lightLevel, 0, 359);  //Servo position
  
  myservo.write(pos);  
  delay(1000);
}

Im a bit lost at to how I can get the LED to turn on only after the servo has reached its position. Can anyone help me or point me to the code that I can use to read the servo position and turn the LED on.

Thanks

Can anyone help me or point me to the code that I can use to read the servo position

You can't. At most, you could read where you told the servo to go to, but that won't tell you that it is there yet.

Do you really have a 360 degree servo?

You calculate a value for pos. Which of those values should cause the LED to come on?