Lead cables connect the electrodes to an ECG machine. The electrical impulses are recorded by an ECG to reveal how rapidly the heart is beating, the rhythm of the heart beats, and the intensity and timing of the electrical impulses as they flow through the different sections of the heart.