Five new coordination polymers (CPs) were obtained as a result of hydrothermal reactions of 2,2-dimethylglutaric acid (H 2 dmg) and 1,4-bis(1H-1,2,4-triazol-1-ylmethyl)benzene (pbtx)/1,2-bis(1H-1,2,4-triazol-1-ylmethyl)benzene (obtx) ligands with some metal ions [Co(μ-dmg) 5). All of the compounds were characterized by elemental analysis, FT-IR spectroscopy, single-crystal X-ray diffraction, powder X-ray diffraction, and thermal analysis techniques. The single-crystal X-ray studies show that all compounds exhibit 2D layer structures. To examine the ammonia sensing properties of five new coordination complexes (1−5), the absorption and emission spectra of CPs embedded in ethyl cellulose thin films were measured by exposure to different concentrations of ammonia (NH 3 ) vapor. The [Co 2 (μ-dmg) 2 (μ-pbtx) 2 ] n (4)-based sensor agent was found to show promising sensor properties in detecting NH 3 vapor.