Electronically controlled AC switch

Thank you for the info! I'm very new to electronics and thought it would be safer to buy something prebuilt. Even if I didn't electrocute myself I'd worry that anything I put into the wall might be 100% safe.

Best,
LT