How do fitness trackers measure your heart rate?

Everything you need to know about photoplethysmography (PPG), the technology behind heart rate measurements in fitness watches and smart rings.