Leaning Angle on Devices with g-sensors

So i got an idea when i was riding out with my bike, but i dont know if the sensors in my edge 530 can really read out that data :D

It would be interesting to record the leaning angle when out on a bike, to see the progression