How to program a photoresistor to input an LCD display

the first thing to do is to RE-edit your first posting so that your code is in a code-section. You can read here how you can RE-edit a posting

A "button" is neither HIGH nor LOW a button is pressed or unpressed

Your description massively lacks of a lot of details.
You are using a stepper-motor and a buzzer
Your description should include what the stepper-motor and the buzzer is doing in which situation.
How to code the rest depends on what the stepper-motor and the buzzer shall do!
This is the reason why these details are improtant too!

best regards Stefan