Sensing and adapting to acid stress