In the present work, we have developed a polymer based gas sensor. The polymer nanocomposites are synthesized by the chemical oxidative polymerization of aniline with ammonium persulfate and sulfuric acid. The fabricated sensor is able to achieve a sensing response of 4.56% for PANI/MMT-rGO at 2 ppm of hydrogen cyanide (HCN) gas. The sensitivity of the sensors PANI/MMT and PANI/MMT-rGO are 0.89 ppm−1and 1.1174 ppm−1respectively. The increase in the sensitivity of the sensor may be due to an increase in the surface area provided by MMT and rGO which provided more binding sites for the HCN gas. The sensing response of the sensor increases as the concentration of the gas exposed increases but saturates after 10 ppm. The sensor recovers automatically. The sensor is stable and can work for 8 months.