Use the diode D11 or a resistor of 10 ohm.
Instead of the signal going to the base of transistor Q3, connect it to an analog input of the Arduino.
Keep the resistor R6 (use a value of 1k to 10k) for protection of the Arduino.
In the sketch the function analogRead() reads the voltage of an analog pin.