pH levels can be controlled by adding acids or bases to the water, or by using pH buffering solutions.