Hi, @xqizt
Welcome to the forum.
You have some very long delays in your code.
delay(60000) // 60 second delay
and others of 8 seconds.
You should put some Serial.print statements in to show the value of your variables.
A delay statement, STOPS the code for that time, it does nothing, so if you are expecting buttons or outputs to change in the delay time, IT WON'T.
Look at the "Blink without delay" example in the IDE.
Have you written code to prove each of your inputs is working correctly?
Thanks.. Tom..
![]()