Inclusion Criteria:  Age: Adults 18 years old or older. T1DM with at least one year since diagnosis. Treatment with a multiple daily injection scheme or insulin pump. Trained in advance CHOC. Have an HbA1c above 7.5% and below 10% in the three months before the randomization. Be able to use a Smartphone app for carbohydrate counting.  Exclusion Criteria:  A confirmation or possible diabetic gastroparesia. With a chronic renal disease and an estimated filtration rate of 65 ml/min/1.73m2 or less using the CKD-EPI (Chronic Kidney Disease Epidemiology Collaboration) equation. Patients been treated with any other form of medication different from insulin for DM. Pregnant women.