Current molecular logic gates are predominantly focused on the qualitative assessment of target presence, which has certain limitations in scenarios requiring quantitative assessment, such as chemical contaminant monitoring. To bridge this gap, we have developed a novel DNA logic gate featuring a tunable threshold, specifically tailored to the limits of contaminants. At the core of this logic gate is a DNA-gold nanoparticle (AuNP) hybrid film that incorporates aptamer sequences to selectively bind to acetamiprid (ACE) and atrazine (ATR). Upon interaction with these contaminants, the film degrades, releasing AuNPs that, in the presence of Hg