Pesho has brought up mash pH, so here is an extract about it from ab article about pH during the brewing process which i i thk is pretty clear.
Proper Mash pH
Optimally, the pH of an infusion mash should be in the 5.2–5.6 range, with the lower half of this range often cited as being preferable. This range is a compromise between the pH optima for a variety of processes. Mash pH affects many aspects of the brew including extract yield, fermentability, tannin extraction, lauterability and saccharification time.
In an infusion mash, the greatest extract yield is achieved when the pH of the mash is 5.2–5.4. The most fermentable wort is obtained in the 5.3–5.4 range. Fastest conversion time is obtained in the 5.3–5.6 range.
If the pH during mashing is too high, starch and protein hydrolysis can be adversely affected. Also, high pH during the mash will increase the amount of dextrins present in the wort, resulting in a less fermentable wort.
The husks of malted barley contain compounds such as polyphenols (such as tannins) and silica compounds that are more soluble, and therefore more easily extracted, under high pH conditions. Polyphenols can contribute to colloidal instability and can produce astringency in the finished beer.
Most polyphenols are extracted during the final stages of sparging, when the pH of the wort being run off from the mash rises. It is therefore important to stop collecting wort when the pH of the last runnings climbs to 5.8–6.0. (Note that it’s the pH of the wort being run off that matters, not the pH of the sparge water.)
The optimal pH for many aspects of mashing actually varies due to temperature, mash thickness and other factors, including whether an infusion or decoction mash is employed. As such, optimal pH ranges cited in the brewing literature sometimes vary by quite a bit.
For the homebrewer, getting your mash pH in the right ballpark will greatly improve your beer if you have previously missed the mark. However, making small adjustments within the acceptable range will likely not result in major changes in your beer. And generally, once you learn how to control your pH for a given beer, you will not need to monitor the pH each brewing session. In many cases, the first time a brewer checks his pH, he will find that everything has been OK all along.
Controlling Mash pH
If the pH of your mash does not naturally fall into the acceptable range, there are a variety of ways to manipulate it. The most common problem for brewers, especially those with lots of carbonate ions in their water, is a mash pH that is too high. To lower pH, brewers often add calcium ions, from gypsum (calcium sulfate) or calcium chloride. In a 5-gallon (19-L) batch, one or two teaspoons of either of these will often solve the problem. Likewise, organic acids — such as lactic acid or phosphoric acid — can be added to directly lower mash pH. Adding sour malt, up to about 5% of the grist, is a “natural” way to add lactic acid to the mash.
If the brewer’s water has a lot of carbonates, and this is what is keeping his or her pH level too high, the carbonate level can be greatly reduced by boiling the water and racking it off the precipitate. It is usually easier, however, to simply treat carbonate-rich water with acid (to neutralize the carbonates) or dilute it with distilled water or water prepared by reverse osmosis (RO).
In some cases, especially if a brewer is using very soft water and making a dark beer, the pH of the mash may be too low. In these cases, adding a little bit of chalk (calcium carbonate) or baking soda (sodium bicarbonate) will help."
https://byo.com/article/the-principles-of-ph/