4 Recording heartbeat data and scale it to PWM output (0 - 255)