Help with PH

I’m a bit confused on the whole PH thing. How do I know if it’s off? And if it is, how do I help it/fix it?