Start motor code and sensor reading.