Please, excuse me if this question is ill-suited here. I am new and in need of guidance.
I am studying Internet-of-things and I'm keen on starting a first project.
The tutorial I'm planning to follow controls a lamp from a raspberry pi by cutting the power cord in half and reconnecting both halved of the power cord with a relay module.
For a newbie like myself, I'm nervous about plugging the cable into the mains for testing.
Can anyone advice how to carry out this experiment safely? Will a Surge Protector help avoid fire etc?