Introduction

Conjugated polyazomethines (PAMs) that incorporated divergent aromatic component in polymer framework having assorted bulky or pendant crowd with heterocyclic unit have been groomed and worn to explore the accoutrements of molecular building on electronic and optoelectronic material goods of conjugated polymers. These polymers are recognized as very important standing and applied class of conducting material for electronics and optoelectronics devices. Gas sensors gave a leading role in different fields such as environment monitoring, industrial harmful process control and also in various biological fields [1,2,3,4,5]. Recently conjugated and conducting material containing polymer gave a strong attention in the development and designing of dependable and supremely sensitive gas sensors [6, 7]. For the synthesis of immense performance portable gas sensors conducting polymer built-up and showing properties such as outstanding electrical properties, hasty preparation, resilience, small weight, and little power consumption [8,9,10]. In specific, synthesis of the conjugated and conducting material shows conductivity in polymer backbone. This type of conducting polymer can be synthesized by chemical or electrochemical adulterate/de-adulterate routes and follows the synthetic conditions. Gas sensors are designed with conductive and conjugated polymers functioning at low temperature or room temperature, for example, synthesized gas sensors have the superiority above the metal-based gas sensors [11, 12]. Aromatic polyazomethines contain azo group (–C=N–) in their backbone. This azo group replaces to their polyvinylene equivalents and isoelectronic material with owned carbon correspondents [12, 13]. More correctly, PAMs are efficiently incorporated by means of a simple difunctional molecule condensation reaction with production of neutral lighter molecules as the only outgrowth without any use of catalyst [14]. This synthetic route of polymers gave application in organic electronics because of the catalyst hindering in the main core of polymer matrix which alters their properties [15, 16]. The polymer can be refined by way of long-established method (easily by wiped-off superfluous precursor). This is due to the polymer backbone that contains only azo linkage functions and not the interfering impurities of metal, monomers and others [17,18,19]. The detail studies of azo compound started in 1923, and the corresponding polymers, i.e. polyazomethines, were begun in the year of 1950 [12, 20,21,22,23]. Conjugated polymers are composed of five-membered heterocyclic moieties in regard to good properties for advancement of device fabrication [24,25,26,27,28,29]. Alternatively, if satisfactory with constructing or designing and synthesis of the polymer backbone for conductive, the increase level of conduction by insertion of thiazole groups can be used with tetraphenylthiophene. PAMs containing 1,3 IPA or 1,4 TPA-substituted tetraphenyl thiophene–thaizole units have been perfectly largely symphonized displaying authentic electronic attribute confer to owned chemical essence and interlinked in a polymer framework, such as a great electricity or else an excellent gas sensing, and the literature is rare on thiophene–thiazole-built PAMs [30].

In this current research paper, we synthesized various tetraphenylthiophene–thiazole-based conjugated polyazomethines with thaizole ring unit special effects active nucleus for electron carrier condensing with a 1,3 IPA and 1,4 TPA aromatic ring units specialty for the gas sensing applications. Synthesized copolymers (PAM-03) of approximately 100 mg in 1 mL formic acid casted thin film on glass plate composed of 1,3 IPA, 1,4 TPA and thiophene–thiazole unit. The gas sensing achievement was deliberated for numerous oxidizing and reducing types of gases at 35 °C. Further gas detecting measurements, such as response, recovery times and selectivity, were similarly inspected as well as analysed.

Experimental section

Materials

Isophthalaldehyde (1,3 IPA), thiourea, terephthalaldehyde (1,4 TPA), sulphur powder, acetyl chloride, Br2 solution and AlCl3 were supplied by either Sigma-Aldrich or s d fine. N,N′-Dimethyl foramide (DMF, s d fine) and N,N′-dimethyl acetamide (DMAc, s d fine) were dried over P2O5, distilled under reduced pressure and kept over 4 Å molecular sieves. Solvents such as THF, DCM, methanol, ethanol and glacial acetic acid, were worn as collected. LiCl was dehydrated at 180 °C in vacuum oven for 14 h. Terahydrofuran (THF) and dichloromethane (DCM) were conserved by NaH and CaH2 correspondingly afore procedure.

Instruments and measurements

The PAMs thin films were plunked onto glass substrate by adopting spin-coating technique. Fourier transform infrared (FTIR) spectrometry (Thermo Nicolet iS-10 Mid Fourier transform infrared between wave numbers of 650–4000 cm−1) was engaged to classify the functional groups of precursor and polymers. The 1H-NMR scan was operated on 400 MHz Bruker spectrometer in dimethyl sulfoxide-d6. Molecular weight of monomer is confirmed by MASS spectrometer. Ultraviolet–visible (UV–Vis) spectra were operated on a Beckman DU-640 spectrometer. The XRD analysis was drifting out by using X-ray diffractometer (ULTIMA IV Goniometer). Surface morphology of PAMs was done by scanning electron microscopy (SEM JEOL JSM-6360) instrument. Inherent viscosities of the PAMs were deliberate by an Ubbelohde suspended-level viscometer. Thermal behaviour of the PAMs was reconnoitred by a TGA—Mettler Toledo with pure nitrogen with stream amount of 20 ml/min and at a heating degree of 10 °C/min. Differential scanning calorimetry result was carried out on a Mettler Toledo DSC-1 STARe instrument to define the material softness or glass transition temperature of PAMs.

The silver connections were engraved on the exterior of the PAMs film and two probes were pined on the PAMs film by fixing their spot in the system. The temperature dependence electrical conductivity quantification of the PAMs was accomplished through four-point probe system making use of 6-digit Keithley 6514 electrometer.

The PAMs sensor was operated at various temperatures towards numerous gases to achieve the constant resistance (Ra) with H2S gas introduced keen on the object compartment and the sensor resistance touches the fresh persistent value (Rg). The H2S gas response is calculated as

$$S\left( \% \right) = \frac{{R_{\text{a}} - R_{\text{g}} }}{{R_{\text{a}} }} \times 100$$
(1)

where Rg is the sensor resistance dignified in the existence of the object gas and Ra in air. Response and recovery times are demarcated as the time desirable to touch 90% of the whole resistance alteration on disclosure to gas and air, respectively.

Synthesis

Monomer synthesis

2,5-Bis(4-(1-bromo) acetyl phenyl)-3,4-diphenyl thiophene (TPTPDAcBr)

Into 500-mL three-neck round-bottom flask, suspend 4.72 g (10 mmol) of diketone compound (TPTPDAc) in 200 mL glacial acetic acid and warm quietly till a transparent solution outcome. Then, 3.199 g (1 mL 20 mmol) of bromine was added dropwise, and the reaction flask was stirred at same temperature for 2 h. Then, cool and filter the crude product. It is washed with cold glacial acetic acid and then by small quantity of water and recrystallized with rectified spirit. Yield 79%, mp: 224–226 °C.

2,5-Bis(4-(2-aminothiazole) phenyl)-3,4-diphenyl thiophene (TPTPThDA)

Into 100-mL single-neck round-bottom flask, a mixture of TPTPDAcBr (5.6 g, 8.88 mmol) and thiourea (2.24 g, 29.47 mmol) was dissolved in 60 mL THF. The mixture was stirred and refluxed for 24 h. Then, cool the clear solution, transfer it to another beaker containing cold sodium acetate solution and stir it for 3 h. The crude product was filtered, washed by water and recrystallized with ethyl acetate as yellowish crystals. Yield 75%, mp: 236–238 °C.

Polymer synthesis

Synthesis of polyazomethines/co-polyazomethines (PAM-01 to PAM-05)

Into 100-mL three-neck round-bottom flask, a mixture of 0.584 g (TPTPThDA, 1 mmol) of diamine and 3 mL of dry DMAc was stirred under nitrogen gas to get transparent solution of diamine. Then, 0.134 g of dialdehyde (TPA/IPA/TPA + IPA, 1 mmol) was added to the above solution with constant stirring at room temperature and stirred for overnight in N2 atmosphere. The mixture was reheated at 140 °C for 4 h. On cooling, the polymer mixture was gradually poured into water while continuing stirring, and precipitate of the resulting polymer was filtered off. Rinse with water and resulting brown product was obtained in high yield. Dry under vacuum at 80 °C for 8 h, to produce PAMs. By applying same procedure, all other PAMs are prepared in 93–100% yields.

Results and discussion

Monomer synthesis and characterization

The diamine precursor containing thiophene–thiazole unit (TPTPThDA) was synthesized in four steps, as sketched in Scheme 1. First step executes cylcocondensation of benzyl chloride and sulphur to yield 2,3,4,5 tetraphenylthiophene (TPTP). In the second step, the diketone compound (TPTPDAc) was obtained by direct acylation TPTP [31, 32]. The third step involved is bromination of TPTPDAc to give alpha-bromo derivative, i.e. TPTPDAcBr. In the fourth step, TPTPDAcBr undergoes ring closure with thiourea to give 2,5-bis(4-(2-aminothiazole) phenyl)-3,4-diphenyl thiophene (TPTPThDA). Chemical elucidation of new diamine precursor (TPTPThDA) was confirmed by proton-NMR, FTIR and mass spectral analysis.

Scheme 1
scheme 1

Synthetic pathway for the synthesis of 2,5-bis(4-(2-aminothiazole) phenyl)-3,4-diphenyl thiophene diamine monomer (TPTPThDA)

The proton-NMR spectra of TPTPThDA are shown in Fig. 1. The resonance peak at 4.0 δ ppm (4 H) appears as singlet correlate to –NH2 protons of the thiazole ring components. The resonance peak in the range of 6.4–7.6 δ ppm (16H) is for hetro-aromatic protons of tetraphenylthiophene–thiazole moiety. 1H NMR analysis clearly indicated that diketone structure is completely transformed into diamine structure by cyclization. It has been also reported that ketonic methyl units of TPTPDAc are highly conjugated (enol form) with phenyl rings of TPTP and finally transformed into thaizole ring units. The FTIR spectrum of the corresponding diamine monomer (TPTPThDA) also supported the evidences of the successful achievement of complete ring cyclization of thaizole monomer, as shown in Fig. 2. The infrared spectrum showed absorption bands at 3400–3150 cm−1 (–NH2 stretch). The mass spectrum shown in Fig. 3 was compatible by the true structure at m/e 584 related to the M+ ion of TPTPThDA. The other disintegration pattern at m/e 555,537 and 385 proves the losing of 2-aminothiazole units.

Fig. 1
figure 1

1H-NMR spectra of TPTPThDA

Fig. 2
figure 2

FTIR spectrum of TPTPThDA

Fig. 3
figure 3

MASS spectra of TPTPThDA

Polymer synthesis and characterization

As presented in Scheme 2, a series of five new PAMs was prepared from new diamine precursor, i.e. 2,5-bis(4-(2-aminothiazole) phenyl)-3,4-diphenyl thiophene (TPTPThDA) with two different dialdehydes (IPA and TPA or varying mole ratio of IPA + TPA) by a high-temperature solution polycondensation method [33]. Yields and inherent viscosities are shown in Table 1. The synthesised PAMs were proved by FTIR spectra.

Scheme 2
scheme 2

Synthetic pathway for the synthesis of polyazomethines (PAM-01 to PAM-05)

Table 1 Synthesis of polyazomethinesa from (TPTPThDA)

The vibrational assignments of various thiophene–thiazole-based polymers are reported in Fig. 4. The stretching vibrations of –C=N– (azo linkages) absorption bands are typically located at 1598 cm−1. The loss of stretching vibrations at 1700 and 3400–3150 cm−1 specified that total dialdehyde and diamine functionality had proceeded to produce with great molecular framework of PAMs. The stretching absorption at 1622 cm−1 is attributable to aromatic –C=C– stretching frequency of tetraphenylthiophene–thiazole unit which is well-constructed in polyazomethine [33]. The stretching at 3050 cm−1 explains the aromatic C-H moiety of the polyazomethines chain.

Fig. 4
figure 4

IR spectra of PAMs

Solubility and inherent viscosity

As shown in Table 2, solubility of PAMs was proved qualitatively in numerous organic solvents. All PAMs were dissolved at room temperature in formic acid and conc.H2SO4. This is due to the fact that the polymers are containing more rigid structures, but are partly soluble in DMAc, DMSO, NMP and DMF. Moreover, they were totally insoluble in fewer active solvents such as dichloromethane and chloroform [31, 34, 35].

Table 2 Solubility of polyazomethines (PAM-01 to PAM-05)

As shown in Table 1, the resulting PAMs hold inherent viscosities fluctuate commencing 0.14–0.28 dL/g, deliberated in formic acid at concentration of 0.50 dL/g at 30 °C.

XRD analysis

The X-ray diffraction (XRD) technique has been used to check the crystallinity/amorphous nature of series of polyazomethines (Fig. 5) over in the 2θ range of 5°–90° [36]. Broad diffraction peaks at ~ 12° and ~ 20° (2θ) were detected which support the amorphous nature of PAMs. No more sharp peaks are detected which specifies amorphous nature of PAMs. From the observed arrangements of PAMs, it is granted to confirm that considered material had an amorphous nature which was predicted and also in good compliance with the reported literature [37, 38].

Fig. 5
figure 5

XRD spectra of PAMs

Electrical conductivity measurement

Figure 6 deals with study of temperature dependence electrical conductivity of polyazomethines. The increase in the conductivity of PAMs as an activity of dialdehyde composition (IPA/TPA/IPA + TPA) is described in Fig. 6. Specifically, the conductivity increased when the dialdehyde (IPA) content was increased from 00 to 100 wt%. The conductivity result of PAMs films is 9.55 × 10−7 S/cm, 9.59 × 10−7 S/cm, 9.66 × 10−7 S/cm and 9.73 × 10−7 S/cm for PAM-01, PAM-02, PAM-04 and PAM-05, respectively, It is the highest for PAM-03 (50% IPA + 50%TPA), i.e. 9.93 × 10−7 S/cm. A further increase in conductivity credits to the successful replacement of 1,4 linkage (TPA) by 1,3 linkage (IPA) in the polyazomethine matrix. Polyazomethine films are of p-type semiconducting material.

Fig. 6
figure 6

Temperature dependence on electrical conductivity of polyazomethines (PAM-01 to PAM-05)

UV–Visible analysis

The electronic status quo of the PAM-03 is defined in Fig. 7. Thin-film polymers were prepared in formic acid and spin-coated on the glass slides for UV–Vis measurements. PAM-03 showed two absorption bands in the UV–Vis spectra. The first absorption band at 254 is attributed to π–π* progression of aromatic ring conjugations. The next most important absorption area is sighted around 342 nm owing to n–π* transition of imine conjugations. From this, it was confirmed that all the precursors or starting material totally vanished and increased electron shifting in the polymer backbone. The polymers solution appeared dark yellow-orange to red, whereas the dialdehyde monomers appeared as colourless. Table 3 outlines the band gap energy (Eg) of PAM-03, and it is 3.63 eV [39].

Fig. 7
figure 7

UV–Vis spectra of PAM-03

Table 3 Absorption cut-off values λ max (nm) and energy band gap Eg (eV)

In the conjugated systems, the electrons obstacle stuck between energy levels, that is prolonged pi orbitals, generated by a series of interchanging single and double bonds, frequently in aromatic systems. In addition, aromatic π-conjugated tetraphenyl with heterocyclic unit arrangements is energetic material composition which contains π–π intermolecular interrelations and it is advantageous for optical and electronic applications [40, 41]. This alteration is attributable to the interaction in the polyazomethines films, which upsurge the extent of orbital lap connecting the p electrons of the thiophene–thiazole ring units link with the lone pair of nitrogen atom in polyazomethines [42]. After polymerization of TPTPThDA diamine monomer and dialdehyde monomers, there is prolonged conjugation of aromatic system with more unsaturated (multiple) bonds in a polymer backbone having a tendency to change in shift of absorption to corresponding wavelengths.

In whole, UV–visible spectroscopy data correlate with infrared spectra. They indicate the presence of imine linkages (1598 cm−1) in polymer backbone, i.e. total conversion of primary amine to corresponding macromolecular-structured polyazomethines PAM-03.

Thermal analysis

The thermal properties of the tetraphenylthiophene–thiazole-based PAMs were estimated by DSC and TGA (in both N2 and air atmospheres). The outcomes are outlined in Table 4, and the representative TGA curves (in N2 and in Air) of the polyazomethines are displayed in Fig. 8. As presented in Table 4, the strategy of polyazomethines with the merger of 1,4 and 1,3 linkages and bulky heteroaromatic tetraphenylthiophene–thiazole structure provides high thermal stability. Polymers PAM-01 to PAM-05 were stable up to the temperature around 458 °C in air and nitrogen atmosphere. The Ti of polyazomethines was in the range of 202–219 °C and 217–262 °C in nitrogen and air atmosphere, respectively. The temperatures at 10% weight loss were in the sort of 527–601 °C and 458–545 °C in nitrogen and air atmosphere, respectively. In addition, these polymers remained 58–65% and 10–27% of original weight at 900 °C in nitrogen and air atmosphere, respectively [31, 43,44,45]. Amongst these polyazomethines, the PAM-02 presented uppermost thermal stability with T10% ca.601 °C in compliance with the previous reports [33, 36]. Polyazomethines composed of rigid backbone, i.e. para orientated (1,4 linkages, TPA) shows higher thermal stability than the meta orientated (1,3 linkages, IPA).This varying composition of polyazomethines (PAM-01 to PAAM-05) is also clearly seen in the residual weight at 900 °C [46, 47].

Table 4 Thermal properties of polyazomethines (PAM-01 to PAM-05)
Fig. 8
figure 8

TGA of polyazomethines in air and N2

The heteroaromatic bulky polyazomethines give the glass transition temperature (Tg) in between 257 and 263 °C and are displayed in Fig. 8. The polymers PAM-01 and PAM-02 show the uppermost Tg value (262 °C) because of the presence of rigid 1,4-benzene linkage (TPA) and a lower ratio of 1,3 benzene linkage (IPA), whereas the polymer PAM-03 gave the lowest Tg value (257 °C) due to the existence of the heteroaromatic bulky unit and a equimolar ratio of 1,3 and 1,4 linkages [33]. The DSC arch for PAM-04 and PAM-05 reveals a Tg around at 260 °C (Fig. 9).

Fig. 9
figure 9

DSC of polyazomethines (PAM-01 to PAM-05)

Morphology of PAM-03

Out of all the polyazomethines, PAM-03 shows good conductivity and it contains 50–50% (1,3 IPA and 1,4 TPA) in polymer chain (as shown in Fig. 6), and hence this was selected for morphology analysis. Figure 10a displays the scanning electron photomicrograph of PAM-03 thin film. The micrographs displaying large porosity with permeable granular analogous morphology are noticed for PAM-03 thin film. The permeable granular analogous morphology is beneficial for preoccupation of gases on exterior of thin film and could contribute a fine passageway for electron relocation. Figure 10b shows EDS spectra of PAM-03 thin film. The EDS investigation showed the occurrence of sulphur, carbon and oxygen. The results support the coexistence of S, C and O elements in the pure organic polymeric sample of PAM-03 (as shown in Fig. 10b), and it indicated that high purified polyazomethines have been prepared by using solution polycondensation technique. Figure 10c displays transmission electron microscopy (TEM) image of PAM-03. The TEM image with particle size of 45–50 nm shows that polyazomethine matrix was homogeneously lengthened and moulded slack masses. It can be concluded from TEM images that nucleation of polyazomethines matrix manifests itself, and such type of nucleation sponsors preoccupation of gas molecules apparent over the PAM-03 thin film.

Fig. 10
figure 10

a SEM image of PAM-03, b EDS of PAM-03 and c TEM image of PAM-03

Gas sensing properties

Operating temperature for PAM-03 sensor

Gas response to maximum materials exclusively be contingent on operating temperature. The variation in the functioning temperature changes the rates of the surface assimilation and reaction taking place on the sensor exterior [48]. Consequently, the gas response was verified by various working temperatures (Fig. 11) and the operating temperature is set to 35 °C. Out of all polyazomethines, PAM-03 is showing good electrical conductivity (Fig. 6) and morphology (Fig. 10a), of which PAM-03 shows porous and granular, which is best for gas diffusion in polymer matrix and hence that was selected for gas sensing application. The challenging gas molecules prerequisite a convinced temperature towards beating the activation energy barricade towards respond with the exterior engrossed oxygen species. Equally the challenging gas molecules and the oxygen species demonstrated greater reaction action at 35 °C temperature and the sensor expressed developed greater response. Once the temperature is high, the trouble in gas surface assimilation grounds the reduced consumption speed of the detecting material, ensuing in the gas response dropping [49].

Fig. 11
figure 11

Response of the PAM-03 sensors (100 ppm) at different operating temperatures

In this research work, various gas adsorptions were verified at optimal temperature, i.e. 35 °C. The outcomes are presented in Fig. 12. The sensor exhibited a satisfactory response towards H2S gas concentration of 100 ppm, and the response rises with an intensification in the H2S concentration. An appreciated gas sensor should have mutually great sensitivity and decent selectivity. In command to selectivity of material to H2S, 100 ppm of further gas molecules such as NH3, NO2 and Cl2 was accommodated, hooked on trial method to extent their responses. The experimental outcomes are shown in Fig. 12. The outstanding selectivity can be attributed to the dissimilar reducibility between the challenging gases and their surface assimilation capability on the detecting material. In the gas detecting procedure, the engrossed H2S molecules possibly form the metastable class (HSO–), prominent to the H2S molecules that are simply oxidized by adsorbed oxygen species at 35 °C temperature matched with the other gas molecules.

Fig. 12
figure 12

Selectivity of PAM-03 towards various gases

As displayed in Fig. 13, the resistance curve of the sensor constructed on PAM-03 is enlarged after exposed in 100 ppm H2S and recuperated towards the indecorous air level on coverage to air, which reveals the p-type semiconductor performance of PAM-03. The response rate of PAM-03 is expressively improved which may be affected by the huge surface capacity of material (as shown in Fig. 10a) for gas reoccupation and dispersion, fast transporter.

Fig. 13
figure 13

Change in electrical resistance of PAM-03 sensor to H2S (100 ppm) at 35 °C as a function of time

Selectivity of PAM-03 sensor

The capability of device towards reply in the direction of convinced gas in the attendance of alternative gases exists noted as selectivity. The selectivity of PAM-03 thin film was done underneath expose of altered gases H2S, Cl2, NH3 and NO2 at 35 °C. Figure 12 displays the gas response of PAM-03 thin film to dissimilar gases. PAM-03 thin film displays substantial selectivity towards H2S gas and considerably weaker response to NO2, NH3 and Cl2 gases. Additionally, it is perceived that PAM-03 thin films sense lesser concentration of H2S with greater sensitivity rate as related to higher absorptions of extra gases. The selectivity of PAM-03 thin film to sense H2S gas is greater than that of different conducting polymers, and the results are summarized in Table 5 [50,51,52,53,54,55,56,57].

Table 5 Comparative response study of PAMs with previously reported materials towards H2S gas

Gas sensing mechanism of PAM-03 sensor

The variation in the resistance of the PAM-03 sensor as a character of time is noted at 35 °C and presented in Fig. 13. It was found that, on disclosure of reducing H2S gas on PAM-03 sensor, there was impulsive increase in the rate of resistance. Firstly, a polyazomethine sensor film is tolerable to acquire steady electrical resistance prior to bring H2S gas, the steady electrical resistance is known as Ra (resistance in air), while the resistance of PAM-03 sensor in existence of target gas is known as Rg. We know that the polyazomethine is p-type material, since the dominance charge transporters are holes, further the H2S gas is reducing in nature (electron donor). The interaction between polyazomethine film and exposed H2S gas molecules causes raises in electric resistance values of PAM-03 film. When innovative resistance charge is attained, the H2S gas had been offend and fresh air is instigated into the experiment compartment. The detected variation in the resistance of PAM-03 sensor with H2S gas molecules is owed to the adsorption of gas on the exterior of PAM-03 sensor as well as the response for a specific gas or vapour is essentially correlated to surface accommodation rates of gas on active detecting sheet.

Conclusions

A series of PAMs were prepared by the high-temperature solution polycondensation of a novel diamine precursor 2,5-bis(4-(2-aminothiazole) phenyl)-3,4-diphenyl thiophene (TPTPThDA), with varying proportion of aromatic dialdehydes comonomer [1,3 linkage isophthalaldehyde (IPA) and 1,4 linkage terephthalaldehyde (TPA)]. Inherent viscosities of these PAMs were in between the 0.14 and 0.27 dL/g. These PAMs revealed soluble in HCOOH and conc.H2SO4. The temperature dependence dc electrical conductivity of PAM films was established in variety of 9.5 × 10−7 S/cm to 9.9 × 10−7 S/cm. The plot shows PAMs conductivity which covers the equimolar portion of [1,3 linkage isophthalaldehyde (IPA) and 1,4 linkage terephthalaldehyde (TPA)] in the polyazomethine films, which increases remarkably after insertion of 1,3 linkage means isophthalaldehyde (IPA) in the PAMs matrix. The existence of –C=N– (azo linkage) in the PAMs framework was committed by UV–Vis spectra. The H2S gas-measuring sensor constructed on PAM-03 thin films was effectively developed by spin-coating method on a glass plate. The structure and morphological framework of the polyazomethine thin films is completed by SEM, TEM, XRD and FTIR methods. These films were originated to be extremely sensitive and selective towards H2S gas working at 35 °C. Taking into explanation all the outcomes of gas detecting investigates, it is resolved that the PAM-03 sensor has decent detecting goods like selectivity to H2S gas than further intrusive gases, greater gas response 28%. The enhanced gas detecting goods can be credited to extra adsorption spots delivered via the extra apertures and passages of the active thiophene–thiazole ring subunits. Moreover, the introduction of thiazole units to the mesoporous 1,2,3,4 tetraphenylthiophene (TPTP) cannot merely ease the detachment of engrossed oxygen; moreover, fast-track the dynamic exterior returns in H2S owing to the chemical sensibilise and extended conjugation of fine spread thiophene–thiazole ring subunits. These outcomes direct that the polyazomethine is established to be identical striking H2S gas detecting sensible and has prospective application in the arena of gas sensors.