Hemoglobin is usually detected with the help of a complete blood count (CBC) test by giving a blood sample.