Hello there,
Good day. Thank you for your question.
Yes, this is possible with the I/O elements X, Y and Z obtained from the Accelerometer but this depends on where the device is mounted and how it is calibrated. So the device will exhibit values from the axes and on the server-side, the angle will be calculated using the vectors (angle between 2 vectors).
You may try this and let me know if it helps.
Kind regards.