An array with all-solid-state, potentiometric, miniaturized sensors for pH and potassium was developed to be introduced into the stomach or other sectors of the digestive tract by means of flexible endoscopy. These sensors perform continuous and simultaneous measurement of extracellular pH and potassium. This detection seeks to sense ischemia in the gastric mucosa inside the stomach, an event indicative of local microvascular perfusion and tissue oxygenation status. Our array is proposed as a medical tool to identify the occurrence of the ischemia after gastrointestinal or gastroesophageal anastomosis. The stability and feasibility of the miniaturized working and reference electrodes integrated in the array were studied under in vitro conditions, and the behavior of the potassium and pH ion-selective membranes were optimized to work under acidic gastric conditions with high concentrations of HCl. The array was tested in vivo in pigs to measure the ischemia produced by clamping the blood flow into the stomach. Our results indicate that ischemic and reperfusion states can be sensed in vivo and that information on tissue damage can be collected by this sensor array. The device described here provides a miniaturized, inexpensive, and mass producible sensor array for detecting local ischemia caused by unfavorable anastomotic perfusion and will thus contribute to preventing anastomotic leakage and failure caused by tissue necrosis.