A luminescent metal-organic framework as a turn-on sensor for DMF vapor.