Hi, where are you getting the 5V for the collector of T1. I hope it not the 5V from the arduino.
If you are, any output amplification like that is actually power amplification, which means you are drawing current from the arduino regulated supply probably beyond its rated current.
Provide a separate 5V filtered supply and your problem will be solved.
Tom....... ![]()