Measurement of pH