Switching an AC load with an Arduino is rather simple: either a mechanical Relay or a solid state relay with an optically isolated Triac. It becomes a bit more tricky if one wants to dim a mains AC…