implemented readpH()