measuring the current of the Dc motor

and how much(ohms) must be the value of the resistor?