The activity of an enzyme is influenced by both pH and temperature.
Most human enzymes, such as the intestinal trypsin work best at about 35°C - 40°C and neutral pH.
Gastric enzymes such as pepsin are adapted to the acidic environment of the stomach.