In this work, three new coordination polymers with a free carboxyl group, [Zn 4 (HIDCPy) 4 (DMSO)(DMF) 3 ] n (1), [Cu(HIDCPyO)(DMSO)] n (2), and {[Cd 4 (HIDCPy) 6 ]•4DMF•4C 2 H 8 N•H 2 O} n (3) (H 2 IDCPy = 2-(pyridine-2-yl)-1H-imidazole-4,5-dicarboxylic acid), had been successfully constructed by fine conditions control. Owing to the good fluorescence performance of 1, we explored the complex as a fluorescence sensor for alkaline matters, such as ammonia and amines. The test of selectivity showed that only α,β-diamine, ethylenediamine (En) and 1,2-propylenediamine (1,2-PDA), could greatly sensitize the fluorescence of 1.The fluorescence titration showed the detection limits of 1 were 3.93 ppm for En and 3.21 ppm for 1,2-PDA, respectively. Moreover, the competing and circulating experiments indicated that 1 had satisfactory anti-interference and recyclability toward En and 1,2-PDA sensing. All of these results implied 1 should be a potential turn-on fluorescent probe for detecting α,β-diamine, and the sensing mechanism had also been in-depth elaborated. At the same time, as the control experiments, the fluorescence sensing of 3 toward ammonia and amines was carried out. The results showed that α,β-diamine and other amines could also sensitize the fluorescent emission of 3, but there was a significant gap with 1 in the selectivity and sensitivity.