Alarm Clock with light sensor

Job ID: 33172853

Budget: $30 – $250 USD

I am making an alarm clock project for school, but I am bad at coding. I am using an arduino mega, in the C++ language and plan to use a ds1307 module, an LCD display, some pushbuttons, and a BH1750 light sensing module. I already have an idea of what to do, I just need help creating a code that will only deactivate the alarm when the light sensor detects a certain amount of light for a duration of time. For example, X amount of Lux for 30 seconds of time.
I am basically building this alarm clock :

https://www.electronicshub.org/arduino-alarm-clock/#Circuit_Diagram

(This link contains an alarm clock with code already. I am just trying to modify this to add a light sensor to make it so that only when an amount of light reaches the sensor, will the alarm be able to be turned off. )

Please help, I am terrible at coding.