An electrocardiogram (ECG or EKG) measures the electrical activity of your heart. The heart generates electrical signal which flows out from your heart through your body. Small electrical sensors, called electrodes, are put on your skin to sense the electricity that began in your heart. The electrical activity is then turned into a graph. This can give doctors an idea of whether your heart is beating normally.