Recommended · for advanced
How to use 5V Relay with Arduino to turn ON and OFF AC bulb or DC load
Why people recommend it
Offered as a tutorial for switching a light bulb with a relay from an Arduino, which the title shows can involve an AC bulb on mains wiring.
Watch for: Mains wiring can kill and one asker questions the direct wiring; follow local rules or use a qualified electrician.
In their words
In all the tutorials I've watched, such as this one, that was exactly what they did, but I read in some places that it's dangerous.
user14092875 on electronics.stackexchange.com, Sept 2020. CC BY-SA.