Yes, I thought about that too, similar situation here in Turkey, some outages are just a few or 10-20 seconds that my UPS can handle. So, modifying the circuit in order not to send a signal as soon as it detects outage but maybe cound 2-3 minutes and then send the signal would be much better. But I think this complicates the matter just a little bit. So, if I can manage to build the circuit described in previous messages and write a program to do what I want, then I can try to introduce some kind of useful delay as you described, but first things first, I'm just an electronics newbie trying to find my way :)