An Electrocardiogram (ECG) measures the electrical activity in the heart. This small simulator gives a rough idea of what it looks like. This is not meant to be accurate. This is just for looks. Press E to activate Asystole/Desat (No heartbeat and oxygen saturation of 0) I've also added an extra SpO2 (blood saturation) wave underneath the ECG. It is not accurate.
I used jamesmather's ECG simulator project as the ECG main, then made my own modifications. https://scratch.mit.edu/projects/94449297/ I've also used the basic heartbeat noise and the Red alarm from actual medical monitors.