See my circuit in #50. That's how you switch a 12V signal with a 5V signal. Just remember to invert the logic in your code.