Read Heart Rate Monitor Data
The Heart Rate Monitor (HRM) sensor measures a person's heart rate in real time. Here, Creating Sensor Handler & Listener, Setting event callback for listener and showing heart rate in bpm are done. Stop the Sensor Listener and destroy it once your task is completed.