Need help getting IR sensor to trigger Servo motor

...but without the 'main'