Heart Sensor Code