Anyway runing the code once only at voip loop ?

Hai everyone… this is my 1st post .
And i just begin to start to learn coding stuff.
So after a week of youtube and google… i start to wrote my own code for a applications…

i attach the sketch on the attachment below…


Any reply would be highly appricate


You’ll likely get more people to look at your code if you post it (in code tags please) rather than a picture of it.

A picture of code is nearly worthless. It would be much better if you post code in accordance with the forum guidelines.

The code is not complete, the definitions are not seen on the picture (lcd, Rec, rtc, Relay2...), the loop is not complete as well (lacks the final })