Continuous monitoring of biomarkers at locations adjacent to targeted internal organs can provide actionable information about postoperative status beyond conventional diagnostic methods. As an example, changes in pH in the intra-abdominal space after gastric surgeries can serve as direct indicators of potentially life-threatening leakage events, in contrast to symptomatic reactions that may delay treatment. Here, we report a bioresorbable, wireless, passive sensor that addresses this clinical need, designed to locally monitor pH for early detection of gastric leakage. A pH-responsive hydrogel serves as a transducer that couples to a mechanically optimized inductor-capacitor circuit for wireless readout. This platform enables real-time monitoring of pH with fast response time (within 1 hour) over a clinically relevant period (up to 7 days) and timely detection of simulated gastric leaks in animal models. These concepts have broad potential applications for temporary sensing of relevant biomarkers during critical risk periods following diverse types of surgeries.