A hemoglobin test measures the amount of hemoglobin in your blood. Hemoglobin is a protein in your red blood cells that carries oxygen to your bodys organs and tissues and transports carbon dioxide from your organs and tissues back to your lungs. Abnormal levels of hemoglobin can indicate various health conditions, such as anemia, lung disease, or other disorders affecting red blood cell production and function.