Instructables

Tutorial 4 - Controlling LEDs and servos with sensors and making functions

video Tutorial 4 - Controlling LEDs and servos with sensors and making functions
Using the Servo library; mapping variables to another variable; creating functions