How PH of a solution is measured &give the Nernst equation?

PH is measured by electrochemical cell, consist of two electrodes ¾_Measuring Electrode ¾_Reference Electrode Measuring electrode is sensitive to hydrogen ions &Ref: Electrode is not sensitive to hydrogen ions. The PH is calculated by Nernst equation: which is given as

E=E0 +2.303RT/F[PcH] ,

Where PcH is the PH value deviation from 7.

R is the gas constant
T is the absolute temperature
F is the Faradays constant.