Logics for 4-5 independent temperature events

In English, at least, temp is an abbreviation for both temperature and temporary. I'd suggest you use something other than temp_ as a prefix. Since it appears as though what you are doing is turning heaters on, might I suggest that heat_check and heat_need make more sense.

I know. Yes, my mistake.
This code was written in russian and names there was like (temperatura, proverka, povtor, sverka and so) and for this forum it was rapidly manually converted.