You're looking for something like an ion selective electrode. They make them for a wide variety of parameters such as ammonia/ammonium, nitrate, nitrite, chloride, sulfate, pH, sodium, calcium, etc. You can get them in real time sensor packages as well, but you will need a separate electrode...