Updated to use newer code libraries to target newer devices. Added Sensor High Sampling Rate Permission required for newer devices (Android 12 and above).