The relay suggested is a good idea. Remember you are controlling AC with the output of your transistor. To get around the idea of a common ground, use an opto isolator or simply power the mechanical relay with the microcontroller output. Either of these methods will eliminate the need for a...