Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
One way would be to use a series diode and an optocoupler (plus a current limiting resistor of course). You could add a capacitor across the LED to keep it illuminated during the negative half of the cycle or deal with the pulsating LED in code.
I am using "AC" photocouples like this one.
View attachment 112040
https://www.digikey.com/products/en...ity=0&ColumnSort=0&page=1&stock=1&pageSize=25I wonder if they come in a quad version?