Updated Accelerometer

Code works good.