1 Introduction

A chemosensor may be defined as a sensory receptor or chemical indicator that transduces a chemical signal to an action potential indicative of the presence of an analyte.[1] If the colour, emission property or redox potential of the receptor changes upon binding with the analyte, then the receptor is defined as a sensor.[2] The fabrication of a chemosensor which is highly cost-effective as well as of peerless and inimitable quality has become inevitable since ions are found widespread in almost all fields such as medicine, industries and also in environment.[3]

Literature survey revealed that Schiff bases act as chemosensors for many anions and cations.[4,5,6,7] The multi-ion detection using single molecule is very limited.[8] Such type of sensors could overcome the difficulties encountered with loading multiple indicators and also finds application in the development of logic gates.[9] Schiff base may also find application in bio-imaging[10] and water quality assignments.[11]

Scheme 1
scheme 1

N,N’-Bis(salicylidene)-2-hydroxy-phenylmethanediamine (BSHPMD).

In the Earth’s crust, aluminium is the most abundant (8.3% by mass) metallic element and the third most abundant of all elements (after oxygen and silicon). The element aluminium is intertwined with our day-to-day activities. The wider use of the said metal in kitchen wares, soft drink cans, in the pharmaceutical industry and also in food packing materials has exposed us to aluminium absorption resulting in slow accumulation of aluminium in various human organs leading to skeletal mineralization.[12] The augmentation of aluminium in human bodies retards numerous enzyme activities thereby hampering iron metabolism.[13] Besides, aluminum affects the lives of aquatic animals such as fish and invertebrates by causing osmoregulatory failure in them.[14] Nerve fibre degeneration also can be ascribed to the adverse effect of aluminium where memory process gets affected, leading to the Alzheimer’s and Parkinson’s diseases.[15] Zinc, which is sine qua non for various biological functions in humans is good when taken in limited quantity; but excessive intake is baleful and counterproductive resulting in many disorders.

In the present study, a Schiff base namely N,\(\hbox {N}^{\prime }\)-Bis(salicylidene)-2-hydroxy-phenylmethanediamine (BSHPMD) was prepared by making some modifications in the literature method and well characterized. The structure of BSHPMD was established by single-crystal XRD study, Hirshfeld surfaces and fingerprint analysis. The chemosensing property of the Schiff base receptor was analysed by UV-Vis and fluorescence spectroscopic methods and it was found to act as a sensor selectively for \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions over a number of other metal ions. The \(^{1} \hbox {H}\)-NMR and IR studies confirm the deprotonation, revealing the sensing mechanism. The sensing action of the receptor was established as reversible by titration with \(\hbox {Na}_{2} \hbox {EDTA}\).

2 Experimental

2.1 Materials and methods

Chemicals used for carrying out this work were purchased from Sigma Aldrich chemicals, India and used as received. All the solvents used were of analytical grade. The various metal ion solutions were prepared from the respective chloride salts except for lead (lead acetate). The \(^{1} \hbox {H-NMR}\) spectrum was recorded at room temperature on an FT-NMR spectrometer (500 MHz) (Bruker Avance III 500) in \(\hbox {DMSO-d}_{6}\). IR spectrum was recorded in KBr medium using FT-IR spectrometer (model: Perkin Elmer Spectrum-1) at 298K. The UV-Vis spectrum of the receptor was taken in the Shimadzu UV Spectrophotometer (UV-1800) in methanol medium. The fluorescence measurements were carried out in a quartz cell, in a Jasco Spectrofluorometer (FP-8200). The IR spectral titration studies were carried out in ATR mode with methanol as solvent.

2.2 X-ray crystallography

Data collection: Bruker AXS kappa APEX2 CCD Diffractometer, temperature 296(2) K, MoK\({\upalpha }\) radiation (\({\uplambda }= 71073{\AA }\)) graphite monochromator, cell refinement using APEX2/SAINT, data reduction with SAINT/XPREP, structure solved by SIR92,[16] structure refinement done using SHELXL-2014/7, molecular graphics done by ORTEP 3[17] and mercury[18] and experimental absorption process with SADABS.

2.3 Synthesis of Schiff base receptor

A mixture of ammonium acetate (1 mole) and salicylaldehyde (1 mole) in ethanol was heated to a temperature of \(50 \, {^{\circ }}\hbox {C}\) and then shaken well in an airtight container until the solid mass was obtained. It was filtered and then washed with water followed by ether. The single crystal suitable for X-ray studies was obtained on slow evaporation of the compound in an equimolar solution mixture of ethanol and acetonitrile. In the literature method,[19] the condensation was performed in the presence of \(\hbox {Et}_{3}\hbox {N}\). We have executed the condensation without \(\hbox {Et}_{3} \hbox {N}\) and accomplished with high yield and good purity. Yield: 98% M.p. \(165 \, {^{\circ }}\hbox {C}\); m.w(g/mol): 346.37; IR (Solid state, \(\hbox {cm}^{-1})\): \({\upnu }\)(O-H) 3247; \({\upnu }\)(C=N) 1625; \({\upnu }\)(C-O) 1251;\({\upnu }\)(C-H) 752; \(^{1} \hbox {H}\) NMR (In \(\hbox {DMSO-d}_{6}\), ppm): \(\delta \) 13.18(s,H); \(\delta \) 9.92(s,H); \(\delta \) 8.81(s,H); \(\delta \) 6.36–7.57(m,H) (Scheme 1).

3 Results and Discussion

3.1 Spectral characterization of BSHPMD

The synthesized compound was characterized by various analytical and spectroscopic techniques. The IR spectrum (Figure S1, Supplementary Information) of BSHPMD shows a broadband at \(3247 \, \hbox {cm}^{-1}\), which indicates the presence of the phenolic –OH group involved in intramolecular hydrogen bonding.[20] There is a sharp and strong absorption band at \(752 \, \hbox {cm}^{-1}\), corresponding to aromatic C–H bending mode, supporting the view that the compound is aromatic.[21] The presence of imine group (–C\(=\)N–) is confirmed by the strong band at \(1625 \, \hbox {cm}^{-1}\).[22] In \(^{1} \hbox {H}\) NMR spectrum (Figure S2, Supplementary Information), the multiplet extending from \(\delta \) 6.87 to 7.57 ppm corresponds to the thirteen protons of three phenyl rings of the receptor.[23] The peak at \(\delta \, 6.35 \, \hbox {ppm}\) corresponds to the C–H proton, which is attached to the two imine nitrogen. The phenolic protons \(^{\mathrm{a}} \hbox {H}\) and \(^{\mathrm{b}} \hbox {H}\) which are in similar environment appear at \(\delta \, 13.18 \, \hbox {ppm}\). The phenolic proton \(\hbox {H}^{c}\), which is under an entirely different chemical environment appears at \(\delta \, 8.81 \, \hbox {ppm.}^{24}\) The azomethine protons appear at \(\delta \, 9.92 \, \hbox {ppm.}^{25}\) The absorption spectrum of BSHPMD shows well-defined bands at 260, 318 and 400 nm in methanol medium. The band at 260 nm is due to \({\uppi }-{\uppi }\)* transitions of the aromatic part of BSHPMD. Whereas, the band at 318nmisassigned to \(\hbox {n}-{\uppi }\)* transition associated with the azomethine linkage.[26] The longer wavelength band at 400 nm is due to intramolecular charge transfer transitions.

Fig. 1
figure 1

ORTEP view of BSHPMD.

3.2 Crystal structure of BSHPMD

The single crystal X-ray diffraction studies on the ligand further confirm the proposed structure. The CCDC deposit number for the crystal structure is 1429891. An ORTEP view of the ligand with the atom-numbering scheme is shown in Figure 1. The crystallographic data are shown in Table 1 and the bond angles and bond distances are shown in Table 2. The existence of a hydrogen bond between the phenolic hydrogen and azomethine nitrogen is confirmed and the data for the hydrogen bonding are presented in Table 3. A crystal with dimensions of \(0.300 \times 0.250 \times 0.200 \, \hbox {mm}^{3}\) was used for X-ray data collection. The compound crystallised in monoclinic lattice having C2/c space group with \(\hbox {a} = 17.2077(8) \, {\AA }\), \(\hbox {b} = 12.3043(5) \, {\AA }\), \(\hbox {c} = 18.1985(12) \, {\AA }\), \({\upalpha }={\upgamma }= 90^{\mathrm{o}}\), \({\upbeta }= 112.650(2)^{\mathrm{o}}\) and Z = 8. The torsion angle between C(6)-C(7)- N(1)-C(8) is \(178.63(16)^{\mathrm{o}}\) and the angle between C(16)-C(15)- N(2)-C(8) is \(175.72(15)^{\mathrm{o}}\) confirmed the Schiff base formation. The C(7)-N(1) distance is 1.270(2) Å and the distance between C(15)-N(2) is 1.280(2) Å. In the Schiff base ligand C(7)-N(1)-C(8) bond angle is \(121.96(15)^{\mathrm{o}}\) and C(15)-N(2)-C(8) bond angle is \(120.73(14)^{\mathrm{o}}\). The crystal packing and the hydrogen bond network of Schiff base ligand are depicted in Figure 2.

Table 1 Crystal data and structure refinement for BSHPMD.
Table 2 Selected bond distances(Å) and bond angles(\(^{\mathrm{o}}\)) for BSHPMD.
Table 3 Hydrogen bonds for BSHPMD [Å and \(^{\mathrm{o}}\)].
Fig. 2
figure 2

Packing view of BSHPMD.

3.3 Metal ion detection studies

To ascertain the metal ion sensing property, the receptor was subjected to absorption and emission studies in methanol medium at a concentration of \(1 \times 10^{-4} \, \hbox {M}\). The metal ion concentration was maintained at \(3 \times 10^{-3} \, \hbox {M}\).

Fig. 3
figure 3

(a) UV–Vis titration of receptor BSHPMD(\(1 \times 10^{-4} \, \hbox {M}\)) with \(\hbox {Al}^{3+}(3 \times 10^{-3} \hbox {M})\); Inset: Variation of absorbance at 364 nm in the presence of \(\hbox {Al}^{3+}\); (b) UV–Vis titration of receptor (\(1 \times 10^{-4} \, \hbox {M}\)) with \(\hbox {Zn}^{2+} \, (3 \times 10^{-3} \, \hbox {M})\); Inset: Variation of absorbance at 375 nm in the presence of \(\hbox {Zn}^{2+}\), where [R] is the concentration of receptor BSHPMD. Optical path length = 1.

3.3.1 UV-Vis spectral studies

The receptor was allowed to interact with two equivalents of various metal ions such as \(\hbox {Na}^{+}\), \(\hbox {Mg}^{2+}\), \(\hbox {Ca}^{2+}\), \(\hbox {Mn}^{2+}\), \(\hbox {Co}^{2+}\), \(\hbox {Ni}^{2+}\), \(\hbox {Cu}^{2+}\), \(\hbox {Zn}^{2+}\), \(\hbox {Sr}^{2+}\), \(\hbox {Cd}^{2+}\), \(\hbox {Ba}^{2+}\), \(\hbox {Hg}^{2+}\), \(\hbox {Pb}^{2+}\) and \(\hbox {Al}^{3+}\). A significant change in absorption behaviour of the receptor was observed only in the presence of \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions. In the absence of metal ions, the receptor exhibited three absorption bands at 260, 318 and 400 nm. The interaction with \(\hbox {Al}^{3+}\) was exemplified by the appearance of a new band at 352nm with a concomitant disappearance of the bands at 318 and 400 nm. Likewise, the interaction between the receptor and \(\hbox {Zn}^{2+}\) was authenticated by the blue shift of the band at 400 nm to an extent of 39 nm (Figure 3). The addition of other metal ions resulted in no significant spectral changes, thus proving the selective sensing property of the receptor towards \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions.

The coordinating potentiality of the receptor was further scrutinized by UV-Vis titration experiments involving the gradual addition of 0.2 to 2 equivalent of \(3 \times 10^{-3} \, \hbox {M}\) solutions of \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) to a solution of the receptor. The incremental addition of \(\hbox {Al}^{3+}\) resulted in a decrease in the absorbance of the bands at 318 and 400 nm and there is the appearance of a new band at 350 nm. The sequential addition of \(\hbox {Zn}^{2+}\) to the receptor showed a small redshift along with an increase in the absorbance of the band at 318 nm. In addition, for the band at 400 nm, a blue shift was observed to an extent of 39 nm with an obvious isosbestic point at 379 nm. The deviations in the absorbance of the new band occurring during the addition of respective ions were depicted in the inset plot. The variations in the absorption may be due to the complex formation between the receptor and the metal ion, paving the way for the ligand to metal charge transfer transitions.[27] The binding constants of \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\hbox {ions}\) with receptor are determined using Benesi–Hildebrand plot, as \(2.13 \times 10^{3}\) and \(16.23 \times 10^{3} \, \hbox {M}^{-1}\) respectively, which is indicative of a firm coordination of \(\hbox {Al}^{3+}/\hbox {Zn}^{2+} \, \hbox {ions}\) with the receptor.[28, 29]

Fig. 4
figure 4

Fluorescence spectrum of receptor BSHPMD (\(1 \times 10^{-4} \, \hbox {M}\)) in presence of 2 equiv. various metal ions (\(3 \times 10^{-3} \, \hbox {M}\)) in \(\hbox {CH}_{3} \hbox {OH}\) solution.

Fig. 5
figure 5

(a) Fluorescence spectrum of receptor BSHPMD (\(1 \times 10^{-4} \, \hbox {M}\)) with gradual addition of \(\hbox {Al}^{3+}\) in \(\hbox {CH}_{3} \hbox {OH}\) solution (\({\uplambda }_{ex} = 260 \, \hbox {nm}\)); Inset: changes of fluorescence upon addition of \(\hbox {Al}^{3+}\) at 450 nm, where [R] is the concentration of receptor BSHPMD; (b) Fluorescence spectrum of receptor (\(1 \times 10^{-4} \, \hbox {M}\)) with gradual addition of \(\hbox {Zn}^{2+}\) in \(\hbox {CH}_{3} \hbox {OH}\) solution(\({\uplambda }_{ex} = 260 \, \hbox {nm}\)); Inset: changes of fluorescence upon addition of \(\hbox {Zn}^{2+}\) at 450 nm., where [R] is the concentration of receptor BSHPMD.

3.3.2 Fluorescence spectral studies

The  fluorescence spectrum of the receptor BSHPMD recorded by keeping the excitation wavelength at 260 nm, showed emission at 450 nm. The changes in the emission behaviour of the receptor upon addition of 2 equivalent of various metal ions are depicted in Figure 4. A conspicuous augmentation in the fluorescence intensity of the receptor band at 450 nm, 18-fold in the case of \(\hbox {Al}^{3+}\) and 95-fold in the case \(\hbox {Zn}^{2+}\) on the addition of 2 equivalents was striking to the eye. Whereas the addition of other metal ions such as \(\hbox {Na}^{+}\), \(\hbox {Mg}^{2+}\), \(\hbox {Ca}^{2+}\), \(\hbox {Mn}^{2+}\), \(\hbox {Co}^{2+}\), \(\hbox {Ni}^{2+}\), \(\hbox {Cu}^{2+}\), \(\hbox {Sr}^{2+}\), \(\hbox {Cd}^{2+}\), \(\hbox {Ba}^{2+}\), \(\hbox {Hg}^{2+}\) and \(\hbox {Pb}^{2+}\) did not trigger any noticeable change in fluorescence intensity. The above enhancement in fluorescence intensity may be attributed to the complex formation between the metal ion and the receptor. The formed complex may be a rigid chelate system leading to chelation-enhanced fluorescence effect (CHEF).[30, 31] The CHEF effect diminished the PET process in the ligand. The binding mode of the receptor with \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) was ascertained by gradual addition (0.2 to 2 equivalent) of the latter to the former. In both cases, the intensity of the emission peak at \(450 \, \hbox {nm} \, ({\uplambda }_{\mathrm{max}})\) was gradually enhanced (Figure 5a and 5b). A small blue shift was also observed in the case of titration with \(\hbox {Al}^{3+}\) ions. The results indubitably revealed that the receptor BSHPMD could serve as a good fluorescent probe for \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+} \hbox {ions}\) in methanol solution.

3.3.3 Selectivity and competitive studies

In order to manifest the selectivity of the receptor, its recognizing ability was examined in the presence of other metal ions. In the presence of competitive cations, trapping of \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions caused the same fluorescence changes. The receptor was treated with 2.0 equivalent of \(\hbox {Al}^{3+}\) in the presence of 2.0 equivalent of all other metal ions. The data clearly suggest that there is no interference of other metal ions for the sensing of \(\hbox {Al}^{3+}\). Likewise, the selectivity of receptor towards \(\hbox {Zn}^{2+}\) in the presence of various other metal ions was proved by nil interference shown by other metal ions for the sensing of \(\hbox {Zn}^{2+}\) ions except for \(\hbox {Cu}^{2+}\) (Figure S4, Supplementary Information). Thus, the receptor can serve as a selective fluorescent sensor for \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\).[32,33,34,35]

3.3.4 Stoichiometry, detection limit and reversibility

Jobs plot studies reveal that the stoichiometry of the complex formed by receptor with \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions was 1:1 (Figures S5 and S6, Supplementary Information).[36, 37] The detection limits for \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) were \(10.04 \times 10^{-8}\) and \(4.98 \times 10^{-8} \, \hbox {M}\) respectively (Figures S7 and S8, Supplementary Information).[38] The reversibility of the recognition process of receptor was evaluated by adding \(\hbox {Na}_{2} \hbox {EDTA}\) to a mixture of receptor and \(\hbox {Al}^{3+}/\hbox {Zn}^{2+}\) which resulted in the diminution of the fluorescent intensity at 450 nm, indicating the reappearance of the free receptor (Figure S9, Supplementary Information).[39, 40]

Fig. 6
figure 6

\(^{1} \hbox {H}\) NMR Spectra of receptor BSHPMD and receptor with \(\hbox {Zn}^{2+}\) and \(\hbox {Al}^{3+} \, \hbox {ions}\).

3.3.5 \(^{1} \hbox {H}\,\) NMR  titration studies

To explain the binding mode of receptor and metal ions, the \(^{1} \hbox {H}\) NMR titrations were performed in \(\hbox {DMSO-d}_{6}\). In the case of free ligand, both the phenolic protons \(^{\mathrm{a}}\hbox {H}\) and \(^{b} \hbox {H}\) appeared at \(\delta \, 13.17 \, \hbox {ppm}\). The addition of 2 equivalents of \(\hbox {Zn}^{2+} \, \hbox {ions}\) leads to the disappearance of the peak at \(\delta \, 13.17 \, \hbox {ppm}\), which confirms the involvement of the two phenolic groups in coordination with the metal ion in a deprotonated fashion. The other two coordination sites are authenticated by the downfield shift of azomethine protons’ signal from \(\delta \, 9.92 \, \hbox {ppm}\) to \(\delta \, 9.96 \, \hbox {ppm}\). These observations confirm the chelate formation between the receptor and \(\hbox {Zn}^{2+} \, \hbox {ions}\) (CHEF effect).

Fig. 7
figure 7

Cyclic voltammogram of receptor and receptor with \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions, where R is BSHPMD.

In the case of aluminium, the addition of two equivalents of \(\hbox {Al}^{3+} \, \hbox {ion}\) causes the disappearance of the peak at \(\delta 13.17 \, \hbox {ppm}\) confirming the coordination involvement of phenolic groups present in A and B rings via deprotonated fashion. The disappearance of the peak corresponding to \(\hbox {H}^{c}\) proton in the ligand (\(\delta \, 8.81 \, \hbox {ppm}\)) confirms the aluminium ion coordinated to the phenolic group in the ring C in a deprotonated fashion. The peak corresponds to azomethine proton shifted to downfield shift (\(\delta \, 10.05 \, \hbox {ppm}\)). The peak at \(\delta \, 6.35 \, \hbox {ppm}\), which corresponded to the C-H proton in between the two imine nitrogens, was shifted to upfield to \(\delta \, 5.68\) and 5.56 ppm in the presence of \(\hbox {Zn}^{2+}\) and \(\hbox {Al}^{3+}\) ions respectively. The small variations in the aromatic region are due to the variations in the geometry of the formed complexes. Thus, in the sensing of \(\hbox {Al}^{3+}\), the aluminium ion coordinates to BSHPMD via three phenolic oxygen and two imine nitrogen, and form penta coordinated complex.[41,42,43,44] Whereas, in the case of \(\hbox {Zn}^{2+}\) ion, tetra coordinated complex was formed. Figure 13 shows the different binding nature of metal ions towards the receptor BSHPMD. Figure 6 shows the \(^{1} \hbox {H}\) NMR spectra of receptor BSHPMD and receptor in the presence of zinc and aluminium ions.

Fig. 8
figure 8

Hirshfeld surfaces (a) dnorm, (b) de, (c) di, (d) curvedness and (e) shape index.

3.3.6 IR spectral studies

In IR spectra of free ligand, the band due to –C=N– bond appears at \(1635 \, \hbox {cm}^{-1}\). While the peak was shifted to an extent of 3 and \(15 \, \hbox {cm}^{-1}\) in the presence of \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+} \, \hbox {ions}\) respectively. The appearance of new bands at 419 and \(415 \, \hbox {cm}^{-1}\) in the presence of \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) respectively, corresponding to the metal-nitrogen bond further confirms the coordination of receptor with metal ions. The emergence of new bands in the region of about \(650 \, \hbox {cm}^{-1}\) may be due to the coordination of receptor through its phenolic oxygens. Figure S10 (Supplementary Information) shows the FTIR spectra of receptor and receptor in the presence of zinc and aluminium ions.

Fig. 9
figure 9

Fingerprint plots of BSHPMD.

3.3.7 CV studies

The coordination of BSHPMD with \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+} \hbox {ions}\) was further evidenced by cyclic voltammetry studies. The cyclic voltammogram of receptor exhibits two oxidation peaks (\(\hbox {E}_{\mathrm{ox}} = -0.142 \, \hbox {V}\) and 0.933 V) and one reduction peak (\(\hbox {E}_{\mathrm{red}} = -0.133\hbox {V}\)). The addition of 2 equivalents of \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) causes the disappearance of the oxidation peak at \(\hbox {E}_{\mathrm{ox}} = 0.933\hbox {V}\) and \(\hbox {E}_{\mathrm{red}}\) value is changed to −0.614/−1.120 V from −1.133 V. It is observed that there is also a considerable change in the \(\Delta \, \hbox {E}\) value of the order of 0.479 and 0.624V for \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) respectively. These observations provide additional evidence for complex formation (Figure 7).

Fig. 10
figure 10

Pie chart of molecular interactions for BSHPMD.

3.4 Hirshfeld surface analysis and Fingerprint analysis

Hirshfeld surface analysis technique is exploited for the calculation of intermolecular interactions. Hirshfeld surface of the receptor BSHPMD is portrayed in Figure 8 with respect to various properties such as di, de, dnorm, shape index and curvedness.[45] dnorm surface highlighted two bright red spots indicating the presence of close contacts in terms of hydrogen bonding, as well as O–H and H–O interactions.[46] The di surfaces exhibited red spots proving the presence of \(\hbox {H}^{\ldots } \hbox {O}\) interactions to an extent of 6.4%. The de surface showed bright red spots evidencing \(\hbox {O}^{\ldots } \hbox {H}\) interactions as dominating ones. The shape index indicated the shape of electron density surface around the molecular interactions. The surfaces in the crystal packing clearly indicate the \(\hbox {O}{-}\hbox {H}^{\ldots } \hbox {C}\) and \(\hbox {O}{-}\hbox {H}^{\ldots } \hbox {O}\) interactions (Figure S11, Supplementary Information). The deformation density of the molecule is calculated as 0.008 a.u. (maximum) and −0.008 a.u. (minimum). A graphical view of the deformation density is shown in Figure S12 (Supplementary Information). The surfaces are calculated using DFT method with 3–21G as a basis set from the crystal data. The 2D fingerprintplots[47] of the Schiff base BSHPMD (Figure 9) summaries the pattern of various intermolecular interactions. The \(\hbox {O}^{\ldots } \hbox {H}\) interactions and \(\hbox {H}^{\ldots } \hbox {O}\) interactions were appearing as spikes in the bottom and top regions. The \(\hbox {H}^{\ldots } \hbox {H}\) interactions appeared in the middle region, whereas, \(\hbox {H}^{\ldots } \hbox {C}\), \(\hbox {C}^{\ldots } \hbox {H}\) and \(\hbox {C}^{\ldots } \hbox {C}\) interactions were present in the top right, left corners and top region respectively. The presence of very weak \(\hbox {N}^{\ldots } \hbox {H}\) and \(\hbox {H}^{\ldots } \hbox {N}\) interactions were also depicted in the picture. The pie chart delineates the percentage contribution of various types of interactions present in the receptor (Figure 10).

Fig. 11
figure 11

UV-Vis spectral changes with the addition of individual and mixture of \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions. (Concentration of receptor BSHPMD = 1\(\times 10^{-4}\) M, Concentration of \(\hbox {Zn}^{2+}/\hbox {Al}^{3+} = 3 \times 10^{-3} \, \hbox {M}\) Optical path length = 1).

Fig. 12
figure 12

Truth table and schematic representation of OR and NAND gates.

Fig. 13
figure 13

(a) Proposed binding mode of BSHPMD towards \(\hbox {Zn}^{2+}\); (b) Proposed binding mode of BSHPMD towards \(\hbox {Al}^{3+}\).

3.5 Logic gate application

The molecular computing is based on chemical reactions that has motivated in the development of molecular logic devices at the molecular level. The distinct optical behavior of BSHPMD towards \(\hbox {Zn}^{2+}\) and \(\hbox {Al}^{3+}\) ions is used to construct a molecular logic gate. For the investigation of their logic behaviors, the threshold values are assigned and then the logic convention is used for their inputs and outputs signals. The input signals are the values of ‘0’ and ‘1’ corresponding to the absence and the presence of \(\hbox {Al}^{3+}/\hbox {Zn}^{2+}\) ions respectively. Whereas, the absorbance at a given wavelength taken as output, which are the values of 0 and 1 depending on the absorbance value below or above a certain threshold. The investigation was carried out with taking two input signals, such as the presence of \(\hbox {Zn}^{2+}\) (\(\hbox {In}_{1})\) and \(\hbox {Al}^{3+}\) (\(\hbox {In}_{2}\)) ions. Figure 11 shows different absorption spectra of BSHPMD observed with the addition of two inputs (\(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\)). In the presence of individual ions (\(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\)), the absorbance at 317 nm was retained, whereas in the mixture of \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) the intensity of the absorbance reduced, which leads to the construction of NAND logic gate. The presence of \(\hbox {Al}^{3+}\) ion results formation of the new strong absorption peak at 352 nm. The addition of \(\hbox {Zn}^{2+}\) and the mixture of \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions also show an increase in absorbance at 352 nm. This can be explained by using OR logic gate. By monitoring the absorption changes of BSHPMD at 317 and 352 nm, the logic gates were constructed. The circuit and the truth table are shown in Figure 12.

3.6 Binding site

On the basis of experimental and computational results, the probable binding mode of the receptor with the metal ions is sketched in Figure 13.

4 Conclusions

The Schiff base N,\(\hbox {N}^{\prime }\)-Bis(salicylidene)-2-hydroxy-phenylmethanediamine (BSHPMD) has been synthesized. The structure of receptor BSHPMD has been confirmed from the Single-crystal X-ray diffraction technique. The intermolecular interactions are visualized by a Hirshfeld surface analysis. Fingerprint plots confirm the quantity of interactions present in the receptor molecule. The Schiff base BSHPMD acts as a chemosensor selectively for \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions over a number of other metal ions such as \(\hbox {Na}^{+}\), \(\hbox {Mg}^{2+}\), \(\hbox {Ca}^{2+}\), \(\hbox {Mn}^{2+}\), \(\hbox {Co}^{2+}\), \(\hbox {Ni}^{2+}\), \(\hbox {Cu}^{2+}\), \(\hbox {Sr}^{2+}\), \(\hbox {Cd}^{2+}\), \(\hbox {Ba}^{2+}\), \(\hbox {Hg}^{2+}\) and \(\hbox {Pb}^{2+}\). The sensing property of the receptor is assessed by UV–Vis and fluorescence spectroscopic methods. The association constants of the receptor for \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions are determined by the Benesi–Hildebrand plot and found as \(2.13 \times 10^{+3}\) and \(16.23 \times 10^{+3} \, \hbox {M}^{-1}\) respectively. The stoichiometry ratio of the receptor BSHPMD with \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) is found to be 1:1. On the basis of experimental and computational results, the probable binding mode of the receptor with the metal ions is suggested. The recognizing efficiency of the receptor is found to be reversible. It can be concluded that Schiff base receptor BSHPMD prepared from commonly available reagents could act as cost-effective, selective, sensitive and reversible sensor for \(\hbox {Al}^{3+}\) and \(\hbox {Zn}^{2+}\) ions over many other ions. It could also be used for OR and NAND molecular logic gates.