An ECG is a graphical representation of the electrical activity of the heart used to detect heart conditions.