Interrupts getting ignored

6v6gt:
Then this question:
If the device generating the interrupt is not giving a sharp enough rise, you could use a pin change interrupt instead.

And maybe comment out ang here :

  if (nil == now.hour() && yogesh == now.minute())

{
   Serial.println("Motor ON");
   digitalWrite(9, HIGH);
   // ang = false;
   nil = 25;//enter the value which will never occur
   yogesh = 61;//value for minnute which will never occur
 }




because I guess you are assuming that an interrupt has not worked based indirectly on the value of ang.

6v6gt:
Then this question:
If the device generating the interrupt is not giving a sharp enough rise, you could use a pin change interrupt instead.

And maybe comment out ang here :

  if (nil == now.hour() && yogesh == now.minute())

{
   Serial.println("Motor ON");
   digitalWrite(9, HIGH);
   // ang = false;
   nil = 25;//enter the value which will never occur
   yogesh = 61;//value for minnute which will never occur
 }




because I guess you are assuming that an interrupt has not worked based indirectly on the value of ang.

I have kept this command bcoz I want the if loop that sets motor OFF time to be enabled only after the pin 9 goes high. If I am wrong implementing that please tell me how do I correct it