I am surprised that your circuit works without a current limit resistor for the LED or a resistor between the Arduino output and transistor base..
I am surprised that your circuit works without a current limit resistor for the LED or a resistor between the Arduino output and transistor base..