A pacemaker is a device that senses heart pulses and sends electrical impulses when needed to activate the heart muscle and maintain a normal heart rhythm. There are temporary pacemakers for the treatment of transient arrhythmias and permanent ones for the treatment of persistent arrhythmias. The pacemaker continuously monitors the work of the heart. In the moment when the pacemaker registers a slowing in the heart rate or a pause, it sends a small electrical impulse to the heart and encourages it to work normally. Immediately afterwards, he continues to follow the rhythm and, if necessary, sends further impulses. In this way, the pacemaker does not allow the heart to work too slowly or to take breaks from work that could be a source of hardship or even danger to life. If the heart is working properly, the pacemaker records it and rests it until it needs to return to a normal heart rhythm. At the time when it is not needed, the pacemaker is not activated and thus a collision with the normal heart rhythm and its beats is avoided, and at the same time the battery is saved so that the pacemaker can last longer.