Mains Monitor

Obligatory Text: Do not attempt to implement this unless you are fully competent to do so safely. It is only intended to be used with AC supplies up to 250V and 16A.