added the sleep so that the motor can send the data.