acdavis1999: While using a light if it if it is below the threshold it will rotate one direction (continuous), but if it is above threshold and it will rotate (further than desired) and hold as long as it remains above threshold.
You have set up two servo position. One is use when above the threshold and the other is used below the threshold. If the servo is moving to the wrong position, change the position you tell it to go to. For hobby servos the typical range is 1000 to 2000 microseconds. If that makes it go about eight turns and you only want it to go one turn, try using the middle 1/8th of the range: values between about 1438 and 1562.