Compensating for gravity in accelerometer data

Hello! I’m working on a mobile project that uses accelerometer data to move a part ingame, and I was wondering if it is possible to remove gravity from the equation to move the part,
While I was researching this I came across this

Which was what I needed, but I don’t quite understand it, and how I could apply it to Roblox. I was wondering if any of you could help