Multiple Sensor Reads Through Single Arduino Uno

How can I program a servo to be controlled by a photo resistor, while also varying the amount of light needed to turn the servo using a potentiometer? Additionally, is it possible to also include a button that controls the same servo, and "outranks" the photo resistor in priority?

My current code simply turns a servo using only a photo resistor:

Circuit_08_Tweak.ino (477 Bytes)

If you post your code as described in the how to use this forum-please read stickies more members will see it and you may get faster, better help.

The Arduino IDE has examples to show you how to read a button and a potentiometer. Learn to those applications work separately, then add the features into your existing code.

You will probably use if statements to handle whatever decisions are required, based on the new inputs.