Update Accelorometer logic