In this work, intelligent materials were developed from the cotton fabric modified with polyaniline (PAni). PAni was used in different oxidation states (Emeraldine Salt, Emeraldine, Leucoemeraldine and Pernigraniline Base). The obtained materials were tested as colorimetric hydrogen sulfide gas sensors. The intelligent fabrics were analyzed by Infrared Spectrometry (FTIR), X‐ray powder diffraction (XRD), Thermogravimetric Analysis (TGA), Energy Dispersive X‐Ray Spectroscopy (EDS), Optical Microscopy and Electrical Resistivity Analysis. Smart fabrics were exposed to hydrogen sulfide gas, and colorimetric analyses were performed before and after exposure to identify fabrics capacity of detection. The obtained results allowed inferring that the best material was the one modified with Emeraldine base. This low‐cost material can be easily obtained, constituting a valuable hydrogen sulfide gas detection tool.