Switch hookup with relay

Do not connect the ground as it bypasses any isolation the relay gives you.