Here is a breakdown of what each term means individually, and why their relationship is chemically inseparable.
The pH of a solution can be calculated if the concentration of hydrogen ions ([H+]) is known: ph shsh
The ability of the thiol to lose its hydrogen depends entirely on the pH relative to its (the pH at which half of the molecules are protonated [S-H] and half are deprotonated [S⁻]). Here is a breakdown of what each term