how to safely use triac
Correct use of triacs is not an easy task and requires some clarification. If you do not have electronics experience, it will be much safer for you to use a relay. It's simple to implement.