Introduction

The development of nanotechnology has provided the world with a new potential global approach because of its applications in various fields. The special features of nanoparticles are widely used in various applications, especially in electronics, photocatalysis, energy reservoirs, medicine, cosmetics, biomedical devices, automobiles, packaging, antibacterial, and information technology [1,2,3,4,5]. Most of the transition metal oxide/sulfide nanosheets are transparent exhibiting an excellent electrical and thermal properties. Various metal oxide/sulfide nanoparticles, such as ZnO, TiO2, CdO, CuO, NiCo2S4, and Fe2S4, have been synthesized for many applications because of their superior structural, optical, and biological properties [6,7,8,9,10]. NiCo2S4 with spinel structured material reveals high conductivity, rich in redox sites enables superior catalytic activity and outstanding bioactivity, and also enhances stability during redox processes. Owing to their superior electrocatalytic performance and long life, NiCo2S4 is widely used in photocatalytic and antimicrobial applications. NiCo2S4 is mostly synthesized by the hydrothermal method because this method has more beneficial for obtaining homogeneous particles with less agglomeration. Commercial textile dyes are mixed with wastewater at different concentrations. Dye pollutants are the main cause of aqueous environmental contamination; therefore, it must be removed from wastewater. Wastewater discharged from industries, utilize various types of synthetic dyes, which are extremely poisonous and carcinogenic, and hence, effectively treated with photocatalysis to oxidize several organic contaminants and remove colors. Tar, a dark red to purple azo dye that is primarily used to color cosmetics, has the source of an anionic dye known as amaranth dye [11,12,13]. It can be used to color phenol–formaldehyde resins, leather, paper, natural and synthetic fibers, etc. This study highlights the use of hydrothermally produced NiCo2S4 for the removal of amaranth dye in an aqueous solution. NiCo2S4 acts as an absorbent to adsorb dye molecules and photodegrade the dye, leading to an increase in dye removal efficiency.

Owing to their safety, nutritional value, health benefits, and antibacterial activity, antibiotics have recently attracted the attention of researchers. This motivated us to investigate the NiCo2S4 nanoparticles. NiCo2S4 exhibited dose-dependent antibiotic activity against both gram-negative and gram-positive bacteria. Staphylococcus aureus and Bacillus are the two common gram-positive bacteria employed in the processing of meat products. Staphylococcus aureus is a gram-positive foodborne pathogen that contaminates diverse foods worldwide. E. coli, a gram-negative bacterium, is used to detect fecal contamination in food. This may result in a number of side effects such as diarrhea and gastroenteritis. The antibacterial and antiviral activities of nanoparticles are associated with compounds that completely kill bacteria and viruses or slow down their growth rate [14,15,16].

In this study, NiCo2S4 (NCS) nanostructure was synthesized using a hydrothermal method, and the structural, morphological, antibacterial, and photocatalytic activities of the material are investigated. The superior nature of this material inspired us to study its catalytic and biological activities. Almost 93% of degrading efficiency are observed for the synthesized NiCo2S4 nanomaterial after 120 min of the degradation process, which proves the superior catalytic behavior of the material. Also, NiCo2S4 nanomaterial proved to be an effective antibacterial agent against both Gram-positive (Staph aureus, Bacillus subtilis) and Gram-negative (Escherichia coli, Pseudomonas aeruginosa) bacteria suggesting strong and promising action against the biological system.

Materials and methods

Synthesis of NiCo2S4 nanostructures

In a typical synthesis, 40 ml of double-distilled water was used to dissolve 0.2 M of the Nickel (II) acetate tetrahydrate and 0.4 M and cobalt (II) acetate tetrahydrate. The mixture was agitated at 450 rpm for 30 min. The mixed solution was placed in a Teflon-lined stainless-steel autoclave and heated to 180 °C for 5 h. The black solution was then removed from the autoclave after cooling to room temperature. The solution was then centrifuged numerous times with ethanol and double-distilled (DD) water to remove any remaining contaminants. Subsequently, the dark colloidal substances were dried for 24 h at 60 °C. The dry powder was then annealed at 200 °C and named as NCS.

$$ {\text{Ni}}\left( {{\text{CH}}_{3} {\text{CO}}_{2} } \right)_{24} {\text{H}}_{2} {\text{O}}\; + \;{\text{Co}}\left( {{\text{CH}}_{3} {\text{CO}}_{2} } \right)_{24} {\text{H}}_{2} {\text{O}}\; + \;{\text{ CH}}_{4} {\text{N}}_{2} \; + \;\left( {{\text{CH}}_{2} {\text{OH}}} \right)_{2} \Delta \to {\text{NiCo}}_{2} {\text{S}}_{4} . $$
(1)

Characterization techniques

X-ray diffraction analysis was performed using a Bruker advanced X-ray diffractometer (XRD). FTIR spectrometer (PERKIN ELMER was used to record the FTIR spectra. A ZEISS device called EVO-18 was used for scanning electron microscopy (SEM).

Measurement of photocatalytic activity

The degradation of amaranth was used to assess the photocatalytic activity of the NiCo2S4 when solar light radiation served as the source of light. A quartz photoreactor with a cylindrical jacket was used for the photocatalytic reaction. To ensure the appropriate irradiation, visible light was created using natural sunlight. Water was constantly pumped into the cooling jacket of the photoreactor to maintain the reaction temperature at 25 °C. Subsequently, 300 ml of amaranth (10 μm) was mixed with 0.1 g. To ensure the adsorption–desorption equilibrium at predefined time intervals, the amaranth solution containing a photocatalyst (NiCo2S4) was magnetically agitated for 30 min in the dark before solar light irradiation. 5 ml sample aliquots were collected every 15 min. To track the changes in the adsorption band in the amaranth UV–visible spectrum, the filtrate was examined using a JASCO UV–Vis spectrometer-530.

$$ {\text{The percentage of photodegradation }}\left( \% \right)\; = \;\frac{{C_{o} - C}}{{C_{o} }}, $$
(2)

where Co is the initial concentration of Amaranth before irradiation (dark) time and C is the final concentration of Amaranth after a certain irradiation time.

Antibacterial activity

The antibacterial activity of the NiCo2S4 (NCS) nanostructure was evaluated against Staph Aureus, Bacillus Subtilis (Gram-positive bacteria), E. Coli, and Pseudomonas aeruginosa (gram-negative bacteria). The Kirby-Bauer agar disk diffusion method was used, in which the plates had initially thoroughly dried, and measuring the pH of the medium at the time of preparation and needed to be between 7.2 and 7.4. The tubes containing the bacterial suspensions were kept at 35–37 °C for 2 h. A sterile cotton swab was used to wipe the pathogens onto agar plates after adjusting the suspension to a McFarland standard of 0.5. The inhibition zones were estimated using the common medication amikacin after the plates had been dried and incubated at 37 °C for 18 h.

Result and discussion

Physico-chemical properties

The XRD pattern of the NiCo2S4 nanostructure is shown in Fig. 1a. The diffracted peaks at 2θ values of 29.8, 31.5, 39.8, 40.2, 48.6, 55.0, and 60.3 are corresponding to Miller indices (281), (311), (398), (418), (493), (515), and (568), respectively, confirming the formation of the cubic crystal structure of the NiCo2S4 nanomaterials. These peaks are in good agreement with JCPDS Data 20–0782. XRD pattern of NCS exhibited pure phase formation of NiCo2S4 nanostructure.

Fig. 1
figure 1

a Powder XRD pattern, b FTIR spectrum, and c, d SEM images of NiCo2S4 nanostructure

The molecular structure and presence of various functional groups in the NCS nanostructures were identified using the FTIR spectra shown in Fig. 1b. The sharp peak at 620 cm−1 corresponds to the Ni/Co-S bending vibrations of the NiCo2S4 nanostructures. In addition to that, the vibration peak at 893 cm−1 reveals the Co-S tensile vibrational mode of the nanoparticle. The stretching vibrations at 1537 cm−1, 1659 cm−1, and the broadband at 3926 cm−1 correspond to the O–H stretching vibrational mode of the NiCo2S4 nanostructures. The morphological variation in the NiCo2S4 (NCS) nanostructure was recorded using SEM images, as shown in Fig. 1c and d. During the growth process of the nanoparticles, the reaction mechanism was controlled by thiourea. Herein, thiourea acted as a reacting agent and controlled the uniform morphology and agglomeration-less formation of nanoparticles.

Photocatalytic activity

The photocatalytic activity of the NiCo2S4 nanostructures was evaluated by the degradation of 10 μm Amaranth dye. The changes in the absorption of amaranth dye as a function of irradiation time using NiCo2S4 nanostructures (0.1 g L−1) are shown in Fig. 2a. The sharp absorption peak of the amaranth dye was shifted to 467 nm by adding 0.1 g L−1 of NiCo2S4 nanostructures under solar radiation with a time interval of 0–20 min. When the sample is irradiated with solar radiation, the amaranth dye has efficiently degraded, as confirmed by the decreasing peak intensity. By increasing the solar radiation time interval from 0 to 120 min, a peak shift was observed and the intensity of the peak decreased gradually. The lowest absorbance peak of the amaranth solution with NiCo2S4 nanostructures as the catalyst was obtained by 120 min after the irradiation with solar light. This confirms the degradation of the dye material. The higher efficiency of dye degradation is due to the narrow bandgap of the NiCo2S4 nanostructures (2.14 nm), which facilitates electron transmission from the catalyst to oxygen (O2) under solar radiation. Thus, the formation of oxygen radicals resulted in strong oxidizing agents that degraded the dye into oxides and water molecules, as mentioned in the reaction.

Fig. 2
figure 2

a Absorption changes of Amaranth photodegradation under solar radiation using NiCo2S4, b (A/Ao) ratio, c ln (A/Ao) ratio, d degradation efficiency

Figure 2a shows the plot between the wavelength and intensity for the effect of solar light irradiation. Figure 2b shows the variation of absorbance ratio (A/Ao) vs irradiation time. Figure 2c. shows the ln (A/Ao) vs time in min. Figure 2d shows the percentage efficiency of the degradation of amaranth dye. At 120 min, no peak was observed, indicating a 93% degradation efficiency of the NiCo2S4 nanostructures. The superior degradation efficiency indicates that the NiCo2S4 nanostructures act as potential catalysts to completely degrade the amaranth dye within 120 min. Therefore, the NiCo2S4 nanostructures exhibit collegial effects, which are valuable for intractable organic degradation.

The reaction mechanism of the catalyst material with the dye under solar radiation is explained as follows:

$$ {\text{NiCo}}_{{2}} {\text{S}}_{{4}} + {\text{ h}}\nu \to {\text{e}}^{ - } + {\text{ h}}^{ + } $$
(3)
$$ {\text{h}}^{ + } \; + \;{\text{H}}_{{2}} {\text{O}}\; \to \;{\text{OH}}^{ \cdot } \; + \;{\text{H}}^{ + } , $$
(4)
$$ {\text{e}}^{ - } + {\text{ O}}_{{2}} \to {\text{O}}_{2}^{ \cdot - } , $$
(5)
$$ {\text{O}}_{2}^{ \cdot } \; + \,{\text{AN}}\; \to \;{\text{AN}}\; +^{ \cdot - } {\text{O}}_{{2}} , $$
(6)
$$ {\text{OH}}^{.} + {\text{ AN}}^{{ + .}} \to {\text{CO}}_{2} + {\text{ H}}_{2} {\text{O }} + {\text{ SO}}_{3} $$
(7)

Improved photocatalytic detoxification (conversion of organic molecules to inorganic compounds) employing NiCo2S4 nanostructures is explained in detail in Fig. 3. The electrons (e) from the valence band are stimulated to the conduction band for solar radiation. A similar number of holes (h+) were present in the valence band following the transition of the electron from the valence band to the conduction band. Photogeneration has occurred in the composite material at that precise moment. Oxygen (O2) attracts electrons to create oxygen radicals (O2·), and water molecules fill the holes to create hydroxyl radicals (OH·). The breakdown of organic contaminants into inorganic molecules is caused by oxygen and hydroxyl radicals [2, 11,12,13,14].

Fig. 3
figure 3

Schematic diagram of the photocatalytic mechanism

Antibacterial activities

The antibacterial activity of the synthesized NiCo2S4 nanostructures was investigated against selected pathogens, such as Escherichia Coli, Pseudomonas aeruginosa, Staphylococcus aureus, and Bacillus Subtilis, using the disk diffusion method, and the results are shown in Fig. 4 and Table 1. The synthesized NiCo2S4 exhibited strong antibacterial activity against both bacterial strains. This indicated that NiCo2S4 nanostructures showed a high inhibition zone area against all bacterial strains. This may be due to the small crystalline size and the unique sheet-like morphology of the material. Modification of the inhibitory zone reveals the susceptibility of the material to both Gram-positive and Gram-negative bacteria. This can be explained by variations in the morphological composition of these bacteria. Gram-negative bacteria have an outer lipopolysaccharide (LPS) membrane that prevents antibacterial chemicals from passing through the cell wall. The outer peptidoglycan layer alone is not a sufficient permeability barrier, and gram-positive bacteria are more vulnerable to this [15,16,17]. Gram-negative bacteria have more complex cell walls than gram-positive bacteria. They also serve as the diffusion barriers, which reduce their susceptibility to antibacterial agents. One of the primary propositions of antibacterial methods is the release of S2− from NiCo2S4, which impedes bacterial cell activities, including enzyme activity and metabolism, and ultimately causes bacterial cell death. In another way, the NiCo2S4 nanomaterial attaches to the bacterial cell membrane, causing bacterial cell death.

Fig. 4
figure 4

Antibacterial activity of NiCo2S4 nanoparticles (a, b) Gram-positive bacteria (c, d) Gram-negative bacteria

Table 1 Area of inhibition zone (mm) of NiCo2S4 nanoparticles against Gram-Positive and Gram-negative bacterial Strains

Conclusion

The NiCo2S4 nanostructures were successfully synthesized by a hydrothermal method. The powder XRD pattern confirms the formation of a cubic crystal structure of the NiCo2S4 nanostructures. NiCo2S4 nanostructures are highly effective as solar-light-active photocatalysts for the degradation of amaranth. The highest photocatalytic activity was attributed mainly to the minimized crystal size and small band gap. 93% of degrading efficiency was observed after 120 min of the degradation process. The synthesized NiCo2S4 nanostructures have also proved to be an effective antibacterial agent against both Gram-positive (Staph aureus, Bacillus subtilis) and Gram-negative (Escherichia coli, Pseudomonas aeruginosa) bacteria suggesting strong and promising action against the biological system.