Load your project folder onto the Pi, navigate to the folder in your Pi SSH session, and run the following command:
sudo node light-sensor.js
Then, cover the light sensor, or shine a light onto it—the servo should move back and forth accordingly.
Now that we've explored the servo as a means of communicating data as well as creating motion, let's take a look at the continuous servo.