The 3-dimensional shape (conformation) of an enzyme is affected by pH and temperature.
Most human enzymes, such as the intestinal trypsin work best at about 35°C - 40°C and neutral pH.
Other enzymes such as pepsin are adapted to the acidic environment of the stomach.