The electronic chip in a pulse generator senses the heart's beat and then sends out electric signals accordingly, in order to regulate heartbeats and maintain a normal rate.