Trouble overiding a push switch with a transistor

Yes. It won't work if the positive supply (Vcc) is not the same for the circuit and the Arduino.