As the most frequent wound complication, infection has become a major clinical challenge in wound management. To overcome the âBlack Boxâ status of the woundâhealing process, nextâgeneration wound dressings with the abilities of realâtime monitoring, diagnosis during early stages, and onâdemand therapy has attracted considerable attention. Here, by combining the emerging development of bioelectronics, a smart flexible electronicsâintegrated wound dressing with a doubleâlayer structure, the upper layer of which is polydimethylsiloxaneâencapsulated flexible electronics integrated with a temperature sensor and ultraviolet (UV) lightâemitting diodes, and the lower layer of which is a UVâresponsive antibacterial hydrogel, is designed. This dressing is expected to provide early infection diagnosis via realâtime woundâtemperature monitoring by the integrated sensor and onâdemand infection treatment by the release of antibiotics from the hydrogel by in situ UV irradiation. The integrated system possesses good flexibility, excellent compatibility, and high monitoring sensitivity and durability. Animal experiment results demonstrate that the integrated system is capable of monitoring wound status in real time, detecting bacterial infection and providing effective treatment on the basis of need. This proofâofâconcept research holds great promise in developing new strategies to significantly improve wound management and other pathological diagnoses and treatments.