We developed novel air-stable 2D polymerized photonic crystal (2DPC) sensing materials for visual detection of gas phase analytes such as water and ammonia by utilizing a new ionic liquid, ethylguanidine perchlorate (EGP) as the mobile phase. Because of the negligible ionic liquid vapor pressure these 2DPC sensors are indefinitely air stable and, therefore, can be used to sense atmospheric anal...