There is advice in some of the following links Search results for 'Accelerometer' - MIT App Inventor Community
How to display the the values that are for X when Y when the device is inclined in a certain direction.
To create an inclinometer, you might have more success using the Orientation sensor which is designed to display pitch and roll of the Android (tilting to left and right or up or down). These might be more useful

