RTC ds3231 alarmstate don't switch relay

Hy!

I have a recompiled code for terrarium automatization. Source code (ValentinAndrei climate control).
The whole code works fine, except the alarm state doesn't power up the relay 1.
I think just the Alarm state isn't a right place in the code.

https://pastebin.com/rbXt2T9C