6v6gt:
OK. You are using an RTC to generate an interrupt.Have a look at this to see if it matches your problem:
DS3231 time module - alarm interrupt not working - Programming Questions - Arduino Forum
No I am not using RTC to generate Interrupt I just fetch time from it add decimal 2 to it and then compare it with current time and when the current time and that is equal it turns pin 9 high. I do this bcoz I want to make pin 9 HIGH after every two hrs.