[SOLVED] Can't get my accelerometer to work -- output seems random

Right I was thinking about my other 2-axis accelerometer. The z shows an offset from 512. The best way to get help is to post both pictures and code.