A lead-based room-temperature phosphorescent metal-organic framework sensor for assessing the peroxide value of edible oils.