An ECG is a record of the heart's electrical activity over time captured by skin electrodes. It is a diagnostic tool used to detect cardiac arrhythmias, conduction abnormalities, electrolyte disturbances, and screen for heart disease. An ECG involves placing electrodes on the skin of the limbs and chest to record the heart's electrical activity through 12 leads that detect the heart from different angles based on Einthoven's triangle. The ECG trace shows the P, QRS, and T waves that correspond to atrial depolarization, ventricular depolarization and repolarization.