Isolated AC line voltage monitoring circuit
There are known problems with the EDN circuit. See https://sound-au.com/appnotes/an005.htm , read near the end for Rod's experiences.
There are plenty of working circuits available on the ESP page.