I'm using my Arduino to control a relay switch, which has an extension cord attached to it (see photo).
The relay is connected to the Arduino via pin 9, which is set to
Do I need any resistors or capacitors or diodes attached to this? Almost feels too simple, given I'm running AC power through the relay. But maybe no?
It definitely works, but I want to make sure I'm not going to burn something out (or down).