Although there are dozens of known type 1 genes, about half of the risk attributable to heredity comes from a handful that coordinate a part of the immune system called HLA, which helps the body recognize nefarious foreign invaders, such as viruses, bacteria, and parasites. Type 1 diabetes is an autoimmune disease, in which the body's own immune system destroys the cells in the pancreas that produce insulin, so perhaps it is no surprise that immunity genes are involved. Other autoimmune diseases share the HLA gene link, which may be why people with type 1 are more likely to develop additional autoimmune disorders.
Diabetes is a condition in which the body cannot properly store and use fuel for energy. The body's main fuel is a form of sugar called glucose, which comes from food (after it has been broken down). Glucose enters the blood and is used by cells for energy. To use glucose, the body needs a hormone called insulin that's made by the pancreas. Insulin is important because it allows glucose to leave the blood and enter the body's cells.
According to the Mayo Clinic, doctors may use other tests to diagnose diabetes. For example, they may conduct a fasting blood glucose test, which is a blood glucose test done after a night of fasting. While a fasting blood sugar level of less than 100 milligrams per deciliter (mg/dL) is normal, one that is between 100 to 125 mg/dL signals prediabetes, and a reading that reaches 126 mg/dL on two separate occasions means you have diabetes.