Turn On LED with servo on button push

Hi! I’m a newbie in arduino programming. I’ve been trying beginner projects and I came to this thought of making a LED lit up when servo motor is rotating. I don’t know if anybody already does that coz I really can’t find any tutorial in youtube and in google. I want two things to get done.

  1. lit red LED when servo rotates clockwise
  2. lit green LED when servo rotates counterclockwise

can someone help me on my code?

int redPin = 12;
int greenPin = 11;

Servo myservo;  // create servo object to control a servo
// twelve servo objects can be created on most boards

int pos = 0;    // variable to store the servo position

void setup() {
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
  pinMode(redPin, OUTPUT);
  pinMode(greenPin, OUTPUT);
}

void loop() {
  for (pos = 0; pos <= 180; pos += 1) { // goes from 0 degrees to 180 degrees
    // in steps of 1 degree
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    digitalWrite(greenPin, HIGH);
    digitalWrite(redPIn, LOW);
    delay(15);                       // waits 15ms for the servo to reach the position
      }
  for (pos = 180; pos >= 0; pos -= 1) { // goes from 180 degrees to 0 degrees
    myservo.write(pos);              // tell servo to go to position in variable 'pos'
    digitalWrite(greenPin, LOW);
    digitalWrite(redPIn, HIGH);
    delay(15);                       // waits 15ms for the servo to reach the position
  }
}

What is the problem with your code? What is it doing that you think is not what you expect?