Sodium hydroxide for pH control