Your doctor can diagnose hyperthyroidism (overactive) and hypothyroidism (underactive) by testing the levels of thyroid hormones in your blood. Doctors measure hormones secreted by the thyroid itself, as well as thyroid-stimulating hormone (TSH), a chemical released by the pituitary gland that triggers hormone production in the thyroid.