ind_ph function

Calculate the indicator for pH