A resting electrocardiogram (ECG) is a common test that detects the electrical activity of your heart. It's taken when you are sitting or lying still. During the test, small electrodes stick to your chest, arms, and legs. These electrodes send signals to a device that produces a visual recording of your heart's rhythm. A resting ECG can help your