The article is devoted to the study of nanocomposite thin films made from a polyelectrolyte complex of chitosan and chitosan succinamide with single-walled carbon nanotubes as a filler, as well as thin films of polyaniline derivatives. The authors investigate how the morphology of polyaniline derivatives and nanocomposites affects the electrical conductivity, sensitivity to air humidity, and reaction to ammonia vapors in thin-film structures. The surface morphology of the films, which were formed from a solution of the synthesized polymers through centrifugation on sitall and glass substrates, was examined using a scanning electron microscope.