Two novel water-stable zinc-based MOFs exhibit specific recognition for PGA, and are fluorescent sensors with high sensitivity, high selectivity, good recovery and good anti-interference ability. In addition, the naked eye can identify PGA at different concentrations.