Using transistors as switches.. problems

Thanks MarkT that's good advice the opto isolators are the way to go.

The switch actually measures -11 volt when open and -9 when closed. A npn and a opto isolator?