Turning Off Optical HR sensor by Menu

Former Member
Former Member
I am interested in turning off the OHR sensor in the VAHR in a menu item. I can turn it on fine .. but it does not like to be turned off. I have this .. but it does not at all turn off reliably. Any feedback would be appreciated

Sensor.setEnabledSensors( [] );
Sensor.enableSensorEvents(null);

I found that the "Sensor.enableSensorEvents(null);" was messing it up. Removed it .. and it works fine now.

Thanks