what is your transistor ?
You didn't send your schematics, but if it is done as I imagine it to be, you should mesure :
0v on the collector wgen the digital pin is high (transistor Off)
and almost 6V when the pin is low (transistor ON)
But a 1k resistor gives only 5mA base current, it is too low to get the transistor saturated, try with
lower value of Rbase . Ib values depends on the transistor characteristics .
Look at the datasheet, find VceSat at Ib=xxxmA Ic=yyymA then you'll have the Ib needed.
Edit : OK I wrote this while you were sending your schematics, sorry
