I used a clinometer app for my dissertation (which involved measuring tree heights, among other things). It does work very well, the app I used had a 'lock' system, where it would save the angle when held for a certain period of time.
I also used a 30cm ruler lined up with the edge of the phone...