Please refer the following recipes to handle information from an acceleration sensor.
Convert outputs of an acceleration sensor to angles
Input MaxMSP Processing Flash
Cookbook
RSS Feeds
Related Links