230 V/AC Sensor for Arduino

Hey, I want to build my own PLC with an Arduino Nano. For this propose I want to use a relay (5 V/dc to 230 V/ac), an impulse switch/ impulse relay for 230 V/ac. The Arduino PLC and its components should be passive and din rail mountable. Should it stop working I would still be able to turn my lamps on manual.

Currently I searching for a solution to get an on/off status of the 230 V/AC circuit. I found some self-soldered optocoupler circuit but I try to avoid them because of safety reasons.

Another approach would be to use an 5V mains supply but this would take much space and is not optimal for din rail mounting.

The best approach I found are "coupler"-relays 230 V/ac to 5 V/dc but I have problems understanding the specs. or match them with my requirements.

With this post I would like to start a collection of solutions and products. As this system would deal with 230 V/ac I would prefer 230 V certified products.

Thanks for your help.

You can use this simple circuit for AC detector.
For 230V, likely use 30K resistors instead.
The output, what I show as D4, goes to an Arduino input pin with pullup resistor enabled.

UL Recognized
V indicates "VDE Certified" (VDE0884, whatever that is)

Thanks for replying.

Are there any vendors providing such modules for din rail mount because i couldn't find one (at least for a decent price). If I would create such a circuits there are possibilities for an electric shock, fire hazard, ...

If there are any modules what would be the estimated prize?

Till now I found following relays to sense 230 V/ac. Can someone confirm that some of this products are correct for this purpose. Does someone have other products/vendors?

Phoenix Contact
EMR
2900315 - PLC-RPT-230UC/ 1AU/SEN

SSR
2834436 - PR1-RSP3-LV-230AC/21
2834478 - PR1-RSP3-LV-230AC/21AU
2912329 - PLC-RSP-230UC/21HC
2966537 - PLC-RSP-230UC/21
2966647 - PLC-RSP-230UC/21AU

Finder

SERIE 38
EMR
38.51.0.240.0060
38.51.8.240.0060
38.51.3.240.0060

SSR
38.61.0.240.0060
38.61.8.240.0060
38.61.3.240.0060
38.11.0.240.0060

SERIE 39
EMR
39.11.8.230.0060
39.01.8.230.0060

SSR
39.10.8.230.9024
39.00.8.230.9024

SERIE 48
EMR
48.31.8.230.0060