Code to simulate a heartbeat on an Arduino for a teddy bear project