how pacemakers work in heart?
A pacemaker helps monitor and control your heartbeat. The electrodes detect your heart's electrical activity and send data through the wires to the computer in the generator. If your heart rhythm is abnormal, the computer will direct the generator to send electrical pulses to your heart.