the invention discloses a polyaniline / c - mwnt produced by carboxylating at least one carbon nanotube to form at least one carboxylic carbon nanotube ; mixing the at least one carboxylic carbon nanotube with a solvent to form a first carbon nanotube solution ; mixing at least one aniline monomer with the first carbon nanotube solution to form a second carbon nanotube solution ; mixing an ammonium persulfate solution with the second carbon nanotube solution to form a third carbon nanotube solution ; air - extracting and filtering the third carbon nanotube solution to obtain the polyaniline / c - mwnt nanocomposite ; cleaning and baking the polyaniline / c - mwnt nanocomposite .