A small sensor is placed on a thin part of the baby's body, usually a finger, toe, or ear lobe. The sensor emits light through the skin and measures the amount of light absorbed by oxygenated and deoxygenated blood, providing a real-time reading of oxygen saturation and pulse rate.