Deoxynivalenol (DON), a mycotoxin produced by Fusarium, poses a significant risk to human health and the environment. Therefore, the development of a highly sensitive and accurate detection method is essential to monitor the pollution situation. In response to this imperative, we have devised an advanced split-type photoelectrochemical (PEC) sensor for DON analysis, which leverages self-shedding MOF-nanocarriers to modulate the photoelectric response ability of PEC substrate. The PEC sensing interface was constructed using CdS/MoSe2 heterostructures, while the self-shedding copper peroxide nanodots@ZIF-8 (CPNs@ZIF-8) served as the Cu2+ source for the in-situ ion exchange reaction, which generated a target-related signal reduction. The constructed PEC sensor exhibited a broad linear range of 0.1 pg mL−1 to 500 ng mL−1 with a low detection limit of 0.038 pg mL−1, demonstrating high stability, selectivity, and proactivity. This work not only introduces innovative ideas for the design of photosensitive materials, but also presents novel sensing strategies for detecting various environmental pollutants.