Hello, good day!
You can use the "EYE SENSOR" that counts with the accelerometer functionality that alows you to meassure the angle.
The angle data received consist in "3 bytes" in hex. format.
The "Most significant byte" in 2's complement, represents the "Pitch"; device pitch can be from -90 to 90 degrees.
The "Two least significant bytes" in 2's complement, represents the device's "Roll" and it goes from -180 to 180 degrees.
You can find the link where you can find detailed information: