A stethoscope is a medical device that helps doctors hear irregular heartbeats. It is also used to measure heart pressure and blood oxygen levels. It works by pressing against the chest to create a sound that doctors can use to diagnose heart problems. A doctor can also use a stethoscope to listen to a baby's heart during a medical procedure.