Dealing with live power(A/C supply) could result in electric shocks.Shielding of relays and proper grounding are required to prevent shocks.Attach an A/C appliance only if you know what you are doing.
If you want to do it smartly attach an A/C supply indicator as I did below, just to make sure that A/C supply is on as the current will be flowing in Raspberry Pi, GPIO pins and the bread board and any other sensor if connected.
Refer the image below.
