A dye sensitized metal-organic framework, TMU-5S, was synthesized based on introducing the laser dye Rhodamine B into the porous framework TMU-5. TMU-5S was investigated as a ratiometric fluorescent sensor for the detection of explosive nitro aromatic compounds, and showed four times greater selectivity to picric acid than any state-of-the-art luminescent-based sensor. Moreover, it can selectively discriminate picric acid concentrations in the presence of other nitro aromatics and volatile organic compounds. Our findings indicate that using this sensor in two dimensions leads to greatly reduced environmental interference response and thus creates exceptional sensitivity toward explosive molecules with fast response.