Heartbeat Sensor Lib
Add Hearbeat Algorithm