Electrocardiograms (ECG) are devices that doctors can use to record the heart’s electrical activity. Portable devices are also available for people who wish to monitor their heart health at home.