acceleration sensor working