Using accelerometer

Hello Community
I need to access accelerometer in mobile device and transfer the info to the camera for its position, My end objective is to create a custom web-ar experience.
Using device orientation camera i have achieved this
https://presence-demo.s3.amazonaws.com/Web-AR/Hologram-AR/index.html

Any go to tutorial or a working demo will be of great help

Why don’t you just use the WebXR API and create AR experiences like demonstrated by the official examples: three.js examples

Apart from that, you might want to look at: Accelerometer - Web APIs | MDN

webxr will run on arcore supported devices only and on iOS the experience is limited to quicklook only. So i want to overcome that issue