A person is diagnosed with diabetes when the pancreas does not produce enough insulin (a hormone) or if the cells are not able to utilise it to turn the glucose produced from food into energy.