A code and circuit that combines  a photo sensor and servo motor, using the full range of motion of the servomotor. When the photo sensor is covered, the code uses the servomotor to indicate ‘dark’. When the photo sensor is exposed, the code uses the servomotor to indicate ‘light’.

When the photo sensor is exposed to light the servomotor stays still. When the photo sensor is covered (dark conditions) the servomotor rotates. This light meter could be used to determine the amount of light hitting the photo sensor. When the photo sensor is covered the servo motor moves depending on how much light is hitting it.