update sensor value to accelemeter
return acceleration value