Determining accleration due to gravity

Provide more info please:
accelerometer used, how connected, code.

Otherwise there is nothing to go on besides speculating about something like this: