Learn how a heart beat sensor works