4 all N impurities. At this point it suffices to see that the con- servative estimates obtained from Eq. (7) predict measurable signals in response to small changes in concentration of the target molecules. To our knowledge, controlled doping of CNTs with transi- tion metal atoms has so far not been achieved. It has, how- ever, been found that metal atoms incorporated into the CNT lattice during catalytic growth are afterwards very difficult to remove [30]. Furthermore, it has been shown that CNT vacan- cies, which are needed for the metallic doping, may be formed in a controlled way by irradiation by Ar ions [31]. This sug- gests that metallic doping of CNTs should be possible. In summary, we have presented a general model of nanos- tructured chemical sensors which takes the adsorption en- ergies of the relevant chemical species and their individual scattering resistances as the only input. On the basis of this model we have performed a computational screening of tran- sition metal doped CNTs, and found that Ni-doped CNTs are promising candidates for detecting CO in a background of air. The model may be applied straightforwardly to other nanos- tructures than CNTs, other functionalizations than metal dop- ing and other gas compositions than air. The authors acknowledge financial support from Span- ish MEC (FIS2007-65702-C02-01), “Grupos Consolidados UPV/EHU del Gobierno Vasco” (IT-319-07), e-I3 ETSF project (Contract Number 211956), “Red Espa˜ nola de Super- computaci´ on”, NABIIT and the Danish Center for Scientific Computing. The Center for Atomic-scale Materials Design (CAMD) is sponsored by the Lundbeck Foundation. JMG-L acknowledges funding from Spanish MICINN through Juan de la Cierva and Jos´e Castillejo programs. [7] A. R. Rocha, M. Rossi, A. Fazzio, and A. J. R. da Silva, “Designing real nanotube-based gas sen- sors”, Phys. Rev. Lett. 100 (17), 176803 (May 2008), doi:10.1103/PhysRevLett.100.176803. [6] F. Villalpando-P´aez, A. H. Romero, E. Mu˜noz-Sandoval, L. M. Mart´ınez, H. Terrones, and M. Terrones, “Fabrica- tion of vapor and gas sensors using films of aligned CN$_{x}$ nanotubes”, Chem. Phys. Lett. 386 (1-3), 137 (Mar. 2004), doi:10.1016/j.cplett.2004.01.052. [23] J. P. Perdew, K. Burke, and M. Ernzerhof, “Generalized gradi- ent approximation made simple”, Phys. Rev. Lett. 77 (18), 3865 (Oct. 1996), doi:10.1103/PhysRevLett.77.3865. [22] J. J. Mortensen, L. B. Hansen, and K. W. Jacobsen, “Real-space grid implementation of the projector augmented wave method”, Phys. Rev. B 71 (3), 035109 (Jan. 2005), doi:10.1103/PhysRevB.71.035109. [21] A. V. Krasheninnikov, P. O. Lehtinen, A. S. Foster, P. Pyykk¨o, and R. M. Nieminen, “Embedding transition- metal atoms in graphene: Structure, bonding, and mag- netism”, Phys. Rev. Lett. 102 (12), 126807 (Mar. 2009), doi:10.1103/PhysRevLett.102.126807. [5] C. Hierold, Carbon Nanotube Devices: Properties, Modeling, Integration and Applications (Wiley-VCH, Weinheim, 2008). [4] P. G. Collins, K. Bradley, M. Ishigami, and A. Zettl, “Ex- treme oxygen sensitivity of electronic properties of car- bon nanotubes”, Science 287 (5459), 1801 (Mar. 2000), doi:10.1126/science.287.5459.1801. [3] J. Kong, N. R. Franklin, C. Zhou, M. G. Chapline, S. Peng, K. Cho, and H. Dai, “Nanotube molecular wires as chemical sensors”, Science 287 (5453), 622 (Jan. 2000), doi:10.1126/science.287.5453.622. [2] J. C. Chalier, X. Blase, and S. Roche, “Electronic and transport properties of nanotubes”, Rev. Mod. Phys. 79 (2), 677 (May 2007), doi:10.1103/RevModPhys.79.677. [1] Gas Sensing Materials, MRS Bull. , vol. 24 (1999). ∗ Electronic address: juanmaria.garcia@ehu.es [20] J. A. F¨urst, M. Brandbyge, A.-P. Jauho, and K. Stokbro, “ Ab initio study of spin-dependent transport in carbon nanotubes with iron and vanadium adatoms”, Phys. Rev. B 78 (19), 195405 (Nov. 2008), doi:10.1103/PhysRevB.78.195405. [19] T. Vo, Y.-D. Wu, R. Car, and M. Robert, “Structures, in- teractions, and ferromagnetism of Fe-carbon nanotube sys- tems”, J. Phys. Chem. C 112 (22), 400 (May 2008), doi:10.1021/jp0761968. [18] C. S. Yeung, L. V. Liu, and Y. A. Wang, “Adsorption of small gas molecules onto Pt-doped single-walled carbon nanotubes”, J. Phys. Chem. C 112 (19), 7401 (Apr. 2008), doi:10.1021/jp0753981. [17] K. T. Chan, J. B. Neaton, and M. L. Cohen, “First-principles study of metal adatom adsorption on graphene”, Phys. Rev. B 77 , 235430 (Jun. 2008), doi:10.1103/PhysRevB.77.235430. [16] S. H. Yang, W. H. Shin, J. W. Lee, S. Y. Kim, S. I. Woo, and J. K. Kang, “Interaction of a transition metal atom with intrinsic defects in single-walled carbon nanotubes”, J. Phys. Chem. B 110 (28), 13941 (Jun. 2006), doi:10.1021/jp061895q. [15] Y. Yagi, T. M. Briere, M. H. F. Sluiter, V. Kumar, A. A. Farajian, and Y. Kawazoe, “Stable geometries and magnetic properties of single-walled carbon nanotubes doped with 3 d transition met- als: A first-principles study”, Phys. Rev. B 69 (7), 075414 (Feb 2004), doi:10.1103/PhysRevB.69.075414. [14] S. B. Fagan, R. Mota, A. J. R. da Silva, and A. Fazzio, “ Ab initio study of an iron atom interacting with single-wall car- bon nanotubes”, Phys. Rev. B 67 (20), 205414 (May 2003), doi:10.1103/PhysRevB.67.205414. [13] J. M. Garc´ıa-Lastra, K. S. Thygesen, M. Strange, and ´ Angel Rubio, “Conductance of sidewall-functionalized carbon nanotubes: Universal dependence on adsorption sites”, Phys. Rev. Lett. 101 (23), 236806 (Dec. 2008), doi:10.1103/PhysRevLett.101.236806. [12] Z. Zanolli and J.-C. Charlier, “Defective carbon nanotubes for single-molecule sensing”, Phys. Rev. B 80 (15), 155447 (Oct. 2009), doi:10.1103/PhysRevB.80.155447. [11] L. Valentini, F. Mercuri, I. Armentano, C. Cantalini, S. Picozzi, L. Lozzi, S. Santucci, A. Sgamellotti, and J. M. Kenny, “Role of defects on the gas sensing properties of carbon nanotubes thin films: experiment and theory”, Chem. Phys. Lett. 387 (4-6), 356 (Apr. 2004), doi:10.1016/j.cplett.2004.02.038. [10] D. J. Mowbray, C. Morgan, and K. S. Thygesen, “In- fluence of O$_{2}$ and N$_{2}$ on the conductivity of carbon nan- otube networks”, Phys. Rev. B 79 (19), 195431 (May 2009), doi:10.1103/PhysRevB.79.195431. [9] C. Morgan, Z. Alemipour, and M. Baxendale, “Variable range hopping in oxygen-exposed single-wall carbon nanotube networks”, Phys. Stat. Solidi A 205 (6), 1394 (May 2008), doi:10.1002/pssa.200778113. [8] S. Brahim, S. Colbern, R. Gump, and L. Grigorian, “Tailoring gas sensing properties of carbon nanotubes”, J. Appl. Phys. 104 (2), 024502 (Jul. 2008), doi:10.1063/1.2956395.