The device uses a light source and a detector. When placed on the baby's skin, it emits light that penetrates the skin and is absorbed by the bilirubin in the tissues. The detector measures the intensity of the absorbed light, which is used to calculate the bilirubin concentration.