Cover the back camera and flash with a fingertip. It reads your pulse from the redness of the light coming through.
Press start, rest a fingertip over the lens, and hold still for twenty seconds.
idle
The red channel is filtered to a band between half a hertz and four hertz, then a real FFT and a peak search find the beat. Steadiness is the average jump between successive beats.