convert 6 minutes to 30 seconds for relay to go on and off after 2 hr interval

Due_unto:
You might try changing

if(min>1 && min<6)

to

if(sec>1 && sec<30)

It's about 10 lines down from
void loop()

Hi,
Frankly, I do not see the point on (trying to) helping somebody that does not understand nothing of the code.
Regards