In the present investigation we have electrochemically synthesized polypyrrole–poly (n-methylpyrrole) composite film with optimized process parameters (viz. concentration of monomers and dopant, applied current density, deposition time, pH of electrolyte etc.) on platinum substrate. The composite film of polypyrrole–poly (n-methylpyrrole) was subjected to electrical, spectral and morphological characterizations and its sensing response to various concentration of ammonia was also studied. Later, the synthesized composite films were irradiated under high vacuum (∼5×10−6 Torr) at room temperature with 85 MeV O7+ ion beam at various fluences from 1×105 to 1×107 ions/cm2. We have observed remarkable improvements in electrical and morphological properties suitable for gas-sensing applications. The irradiated composite film was evaluated for the sensing of various concentrations of ammonia and excellent improvement in terms of sensitivity, lower detection limit and response time was observed.