Quality measures and cost-reduction methods are a high priority in the United States health care system. This includes the high burden of patients with uncontrolled Type 2 Diabetes. Innovative ways to better understand and implement diabetes management plans to reduce the burden of this disease on the system are a necessity. Use of FDA-approved continuous glucose monitoring (CGM) sensors have shown benefit in better management plans in the outpatient setting. Hence, this study hypothesizes that using CGM sensors starting in the inpatient setting will provide better and quicker understanding of the disease to make expedited changes to management plans thereby improving blood glucose control and mitigating some of the health care burden by means of reducing E.D visits and hospital re-admission rates. The study will randomly assign patients to either receive a CGM sensor plus the standard diabetes management and instructions or who will only receive the standard diabetes management. The patients will be followed in the outpatient endocrinology clinic 1-month, 3-month, and 6-month from the time of hospital discharge.