In the contemporary world, the issue of "prevention is better than cure" remains a highly contentious issue in therapeutic areas. One of the pivotal aspects of achieving this goal is the rapid detection of hazardous analysts in foods, water, and living organisms. With the sustainable improvement of the cosmopolitan metropolis, the severe problem of heavy metal pollution in the air, soil, and particularly in the water environment is cause for concern (Mohammed, Kapri et al. 2011, Raval, Shah et al. 2016, Briffa, Sinagra et al. 2020). Since the increase in water pollution could be considered an acute problem, rapid detection of heavy metal ion concentrations in drinking water is an effective remedy. One of these heavy metals that must be precisely taken into account is nickel. The transition series element nickel (Ni), which makes up around 3% of the earth's composition, is the 24th most common element on the earth. At a non-dangerous level, nickel has advantages for instance an activator of some enzyme reactions and participating in critical metabolic systems (Raval, Shah et al. 2016). However, the ingestion of nickel beyond acceptable levels induces the inhibition of oxidative enzyme activity, adverse effects on the lungs and kidneys, skin dermatitis, gastrointestinal distress, shortness of breath, and chest pain. It is really carcinogenic, and high levels of nickel cause the reduction of nitrogen and impaired growth. Based on World Health Organization (WHO), the maximum allowable level of nickel in potable water is 0.02 mg/L (Acheampong, Pereira et al. 2012). Hence, it is tremendously important to augment a swift and straightforward method to implement selective and sensitive recognition of nickel ions. Besides that, hypochlorite fulfills a key role in defending against the invasion of pathogens. Nevertheless, an excessive amount of hypochlorite preparation induces several diseases, namely kidney disease, arthritis, osteoarthritis, atherosclerosis, and cancer (Prokopowicz, Arce et al. 2010, Tang, Ding et al. 2015). Consequently, rapid recognition HOCl/OCl− in vitro and in vivo is really imperative. Moreover, since hypochlorite is commonly deployed as a disinfection of drinking water and household bleach, a high concentration of hypochlorite must be damaging humans and animals, causing nose irritation or arousing eye and stomach discomfort. Owing to the destructive influence of hypochlorite, it is essential to swiftly detect and monitor OCl− residues (Wang, Song et al. 2016, Shi, Huang et al. 2019, Li, Miao et al. 2020).
The sensor field as a privileged tool for clinical diagnostics has paved the way for developing earlier diagnoses and treatments. Most popular approaches for detecting nickel rely on electrochemical methods, atomic absorption spectroscopy, and inductive coupled plasma atomic emission spectrometry (ICP-AES) for declining the interference impacts (Şahin, Efeçınar et al. 2010, Mirabi, Rad et al. 2015, Dos Anjos, Alves et al. 2018). In spite of the great capability of the atomic techniques in selective detections, these methods have drawbacks such as their wrecking strategies, high cost as well as long-time analysis. In the sensor area, the rational design of the naked-eye colorimetric sensor as a swift and visual way culminates in detecting detrimental heavy metals and any imperative analysts (Khattab, Rehan et al. 2017, Aghayan, Mahmoudi et al. 2021). In this line, rhodamine B reveals a wealth of opportunities for chemosensor and biosensor applications, and several small molecules and macromolecules-centered rhodamine B have recently been introduced as an elevated sensor for mercury (Hong, Chen et al. 2019), zinc (Wechakorn, Suksen et al. 2016), copper (Mohammadnejad, Shiri et al. 2020), lead (Sunnapu, Kotla et al. 2015), iron (Chereddy, Suman et al. 2012), picric acid (Sivaraman, Vidya et al. 2014), and fluoride (Sivaraman and Chellappa 2013), Rhodamine-centered sensors universally are non-fluorescent and relatively colorless, notwithstanding they exhibit a color change to deep pink. When they are placed in an acidic solution, they demonstrate a strong fluorescence (Kim, Lee et al. 2008). This observation is owing to protonation at the carbonyl group, and following ring-opening of its spirolactam scaffold (Sivaraman, Anand et al. 2012). Metals ions could cause changing the color and fluorescence by assuming a role resembling that of the hydrogen ions in acidic solvents, providing that a suitable ligand is exhibited on the spirolactam ring (Milindanuth and Pisitsak 2018). As a result, in the present study, we made an effort to enhance a novel probe based on rhodamine B and quinoline as a naked-eye colorimetric sensor that could be efficiently and selectively deployed for detecting heavy metals, namely nickel and also hypochlorite. In addition to that, the chemodosimeter of the novel rhodamine-based sensor for analyte with high sensitivity showed a drastic color change from colorless to deep pink after the addition of the analyte (Parmar, Barad et al. 2013).