I am a software developer with little knowledge of Electrical Engineering. I have delivered some Raspberry PI projects that extensively use Relays.
I recently heard that Triacs are much cheaper and safer than Relays and can do the same job. If that is true, my question is:
Why are Triacs so under emphasised in Raspberry PI (or Arduino) projects and people prefer using Relays?
Also, are Triacs suitable for 120V AC or is there any Triac that can control 12V DC as well?