We present a structurally flexible copper-iodide-pyridine-based coordination polymer showing drastic variations in its electrical conductivity driven by temperature and sorption of acetic acid molecules. The dramatic effect on the electrical conductivity enables the fabrication of a simple and robust device for gas detection. X-ray diffraction studies and DFT calculations allow the rationalisation of these observations.In recent years, coordination polymers (CPs) have gained increasing attention due to their wide structural variety and interesting physico-chemical properties. 1 They are a potential source of multifunctional materials that can bring remarkable physical properties such as luminescence, 2 non-linear optics, 3 magnetism 4 and electrical conductivity. 5 CPs have the ability to produce dynamic structures due to the structural flexibility of the ligands and/or the ability of the coordination sites to exchange, release and/or re-accommodate molecules, rendering CPs as a source of stimuli-responsive materials. 6 These dynamic materials show potential applications as chemical switches, memories or molecular sensors.A limited number of CPs have shown spin-crossover transitions modulated or induced by a chemical stimulus such as gas or solvent sorption in the pores 7-11 and magnetic, physically-driven solid-state transformation. 12,13 Stimuli-responsive electrical materials, mainly centred on organic conductive polymers, 14 are currently of high interest. A recent example of a thin-film device based on the porous coordination polymer Cu 3 (BTC) 2 (BTC = benzene-1,3,5-tricarboxylic acid) has shown an electrical response to 7,7,8,8-tetracyanoquinododimethane (TCNQ) guest molecules. 15 Quasi-linear physical properties have also been reported for MX and MMX chains (M = transition metal, X = halide), some of them showing thermal Peierls transitions that affect their magnetic properties 16 and/or their electrical conductivity. 17 Additionally, we have reported that some double-stranded Cu-halide stairs present interesting physical properties. 18 Here we disclose two 1D-CP polymorphs of Cu(I) with iodide as bridging ligands and 2-amino-5-nitropyridine (C 5 H 5 N 3 O 2 , ANP) as terminal ligands. These polymorphs show very flexible structures that enable a reversible physically-driven electrical conductive transition with electrical bi-stability close to room temperature and a chemicallydriven transition that induces a dramatic enhancement of the electrical conductivity, allowing the fabrication of a simple and robust gas-detection device.The direct reactions carried out between CuI and ANP at 25 1C or under solvothermal conditions lead to the isolation of [Cu(C 5 H 5 N 3 O 2 )I] n (1) and its polymorph 1a, respectively. 1a is isostructural to the Br derivative, also prepared under solvothermal conditions. 19 Both polymorphs show a double-stranded stair motif in which the Cu(I) centres are bridged by m 3 -I. Since the electrical properties (see below) of compound 1 indicate a phase transition at ca. 267-282 K, we h...