Measuring tilt with an MMA7260Q accelerometer

analogRead() will return a value from 0 to 1023 proportional to the voltage on the associated pin