Combining Servo + LDR, a Button, and a Potentiometer

So, What is the problem? You know how to read a switch state. You know how to take action based on that state.

You know how to read a potentiometer value and move a servo.

You know how to read an LDR and move a servo.

Do one of these tasks in the if block and the other one in the else block.

When that doesn't work as expected, learn how to detect transitions and to count switch presses.

Unfortunately, I am inexperienced with coding, so any help you can give me would be greatly appreciated!

You'll never get better if you don't understand the code and try stuff.