added sketch to calculate g forces with accelerometer