An ECG (Electrocardiogram) is a simple, painless test that measures the electrical activity of your heart. It's a crucial diagnostic tool used to detect and monitor various heart conditions, such as arrhythmias, heart attacks, and other cardiac problems.