A pacemaker is a device that is designed to provide an electrical signal to the heart muscle and to help it maintain a proper rhythm.