move the servo write into the lightlevel check