Detect a Power Outage

Here is how I do it: