My project isnt working, its simple.. Help plz

alessandro_0606:
Good evening, my idea is, first verify if there is enough luminosity in the room (or, if the luminosity sensor returns a low number), then i just turn a led ON and a BUZZER to advice that light is missing! then, i show a menu, and depending on the time i hold the button, i turn another LED on or OFF. See the code! Help me, cause there is something wrong :frowning:

That gives us an idea of what it's supposed to do, but please also tell us what it actually does.