pH and Enzyme Function. Each enzyme functions best within a certain pH range. For example, the enzyme pepsin, which works in your stomach, functions best in a strongly acidic environment. Lipase, an enzyme found in your small intestine, works best in a basic environment.