As the arduino can only read up to a maximum of 5V you will also need to put a potential divider between the DC motor and the arduino.
As the arduino can only read up to a maximum of 5V you will also need to put a potential divider between the DC motor and the arduino.