Rapid Colorimetric pH-Responsive Gold Nanocomposite Hydrogels for Sensing Applications

Surface functionalization of metallic nanoparticles (NPs) with external groups can be engineered to fabricate sensors that are responsive to various stimuli like temperature, pH, and numerous ions. Herein, we report the synthesis of gold nanoparticles (GNPs) functionalized with 3-mercaptopropionic acid (GNPs-MPA) and the doping of these nanoparticles into hydrogel materials using the breathing-in/breathing-out (BI-BO) method. MPA has a carboxyl group that becomes protonated and, thus, ionized at a pH below its pKa (4.32); hence, the GNPs-MPA solutions and gels were mostly pH-responsive in the range of 3–5. Optical properties were assessed through ultraviolet-visible (UV-Vis) spectroscopy, namely: transmission and absorption, and the parameters used to quantify the pH changes were the full width at half maximum (FWHM) and position of surface plasmon resonance (SPR). The solutions and gels gradually changed their colors from red to indigo with pH decrementation from 5 to 3, respectively. Furthermore, the solutions’ and doped gels’ highest FWHM sensitivities towards pH variations were 20 nm and 55 nm, respectively, while the SPR’s position sensitivities were 18 nm and 10 nm, respectively. Also, transmission and scanning electron microscopy showed synchronized dispersion and aggregation of NPs with pH change in both solution and gel forms. The gel exhibited excellent repeatability and reversibility properties, and its response time was instantaneous, which makes its deployment as a colorimetric pH-triggered sensor practical. To the best of our knowledge, this is the first study that has incorporated GNPs into hydrogels utilizing the BI-BO method and demonstrated the pH-dependent optical and colorimetric properties of the developed nanocomposites.


Introduction
Owing to their interesting optical, electronic, and chemical properties, gold nanoparticles (GNPs) have been used extensively in biomedical and chemical related industries [1][2][3][4][5][6]. In a myriad of applications, GNPS undergo surface functionalization, which either enhances the intrinsic properties of these nanoparticles (NPs) or introduces new ones [7][8][9][10]. Some of the commonly used functional groups for gold nanoparticles include thiols, carboxylates, and amines. Surface functionalization with such groups allows gold nanoparticles to exhibit physiochemical properties that are responsive to external stimuli, such as pH, temperature, and ions, making them attractive for biosensing and other biological applications [11,12].
Recently, pH-triggered colorimetric changes of functionalized gold colloidal NPs were studied and utilized in numerous applications [13][14][15][16][17][18][19]. For example, Nam et al. functionalized GNPs with an amide group and used their pH-responsive behavior in photothermal cancer therapy [11]. Thiols have widely been used as pH-triggered molecules and attached to GNPs. For instance, Ansar et al. fabricated MUA-functionalized gold nanoparticles and applied their pH-triggered aggregation and re-dispersion properties in catalysis [7].

Breathing of GNPs-MPA into Hydrogel Matrix
Colloidal GNPs-MPA were incorporated into the hydrogels utilizing the BI-BO method [31][32][33]. Contact lenses were used as hydrogel materials and were purchased from Johnson & Johnson ® . The hydrogels were placed in 5 mL of acetone for 2 min, after which the gels became shrunken. Then, they were kept in 5 mL of the synthesized GNPs-MPA colloid for 5 min; gels were swollen at this stage. Subsequently, when the gels were placed again in acetone, the NPs remained inside their network while water was expelled. This process was repeated to show the effect of the number of cycles on the gel's optical properties. Gels were washed with DI water to remove unadsorbed NPs. The fabrication scheme is demonstrated in Figure 1a.

Preparations and Testing of GNPs-MPA Solutions and GELs at Different pHs
GNPs-MPA colloids at distinct pHs were prepared by adding 1 mL of the colloid to 1 mL of DI water, which was adjusted using 0.1 M HCl/NaOH to reach the desired pH. Although the pH of the prepared colloids ranged from strongly acidic to basic (2 to 8 respectively), most of these solutions were designed around the pK a of MPA (4.34). Moreover, two GNPs-MPA gels with different concentrations (number of BI-BO cycles) were tested in five different pH solutions. The pH of the solutions was measured using Atlas Scientific's Lab Grade pH Probe.

Characterization of pH-Responsive GNPs-MPA Solutions and Gels
Optical and morphological characterizations were primarily done to assess the pH responsive behavior of the developed GNPs-MPA solutions and doped gels. The transmission and absorption spectra of the GNPs-MPA solutions were obtained using USB 4000+ spectrophotometer (Ocean Optics, Douglas Avenue, Dunedin, FL, USA) with operation range of 200-1100 nm. 1 mL of each solution was deposited into a cuvette, and the transmission and absorption spectra were recorded using OceanView software. Tecnai TEM 200 kV was used to image the NPs' morphology at different pHs. A copper mesh grid from Agar Scientific was dipped in 1 mL of the GNPs-MPA solution for 1 min and was then dried in vacuum oven. Size and distribution histograms of the micrographs were done and analyzed using 1.50d ImageJ software.
Furthermore, the transmission and absorption spectra of the doped nanocomposite gels were recorded after 3, 6, 9, 12, and 15 BI-BO cycles. Leakage of the nanoparticles from the gels was assessed over a one-month period and is provided in the supplementary materials. Also, optical spectra of two doped gels that have varying NPs' concentration were measured upon immersing them in five different pH solutions. Then, the colorimetric response (RGB values) of the gels was processed through ImageJ.
Scanning electron microscopy (SEM) images of the doped gel's cross-section were done to examine the morphology of the NPs inside the gel; FEI Nova NanoSEM 650, which has an electron beam resolution of 0.8 nm, was used in this study. Initially, the gel was equally sheared, and one part was placed in a basic solution while the other was placed in an acidic solution. Both gels were dried in vacuum oven and coated with 8 nm layer of Gold/Palladium to avoid the charge-up effect. Furthermore, the transmission and absorption spectra of the doped nanocomposite gels were recorded after 3, 6, 9, 12, and 15 BI-BO cycles. Leakage of the nanoparticles from the gels was assessed over a one-month period and is provided in the supplementary materials. Also, optical spectra of two doped gels that have varying NPs' concentration were measured upon immersing them in five different pH solutions. Then, the colorimetric response (RGB values) of the gels was processed through ImageJ.
Scanning electron microscopy (SEM) images of the doped gel's cross-section were done to examine the morphology of the NPs inside the gel; FEI Nova NanoSEM 650, which has an electron beam resolution of 0.8 nm, was used in this study. Initially, the gel was

Results and Discussion
Morphology and size distribution of the synthesized GNPs-MPA are shown in Figure 1d(iii). NPs were spherical in shape, and their average diameter was 19.1 ± 2.9 nm. Standard deviations of the NPs' diameter showed that their size was homogenous. Transmission and absorption spectra of the synthesized GNPs-MPA are shown in Figure 1d the SPR occurred at 522 while the FWHM was 56 nm. The narrow bandwidth confirms the assertions made from the TEM images regarding the NPs' homogenous size distribution.
The transmission and absorption spectra of the GNPs-MPA solutions at different pHs were recorded and are shown in Figure 2a,b, and their corresponding images are provided in Figure 2c. Colorimetric changes of the GNPs-MPA solutions were significantly pH-dependent, where the solutions changed color from dark purple to dark red as the pH increased from 2.1 to 8.0. GNPs-MPA solutions with pH 2 and 3 showed that the nanoparticles were aggregated, precipitated, and settled completely whereas NPs with pH values above 5 were reddish in color indicating their even dispersion. Furthermore, the sensitivity of the optical parameters towards pH was deduced from the slope of the calibration curve in Figure 2d,e. Figure 2d illustrates the inverse relationship between the solution's pH and the absorption's FWHM, particularly in the pH region less than 5. FWHM sensitivity towards pH was 20.7 nm per pH unit. Likewise, position of the SPR varied between pH 3 and pH 5, and the calculated sensitivity was 18.6 nm per pH unit. The GNPs-MPA's SPR position was not pH-responsive beyond pH 5. The aforementioned behavior can be explained by examining the functional groups of MPA and the GNPs-MPA. MPA has two functional groups, carboxyl and thiol, which have pK a values of 4.32 and 10.20, respectively. Covalent bonds form between the thiol group and the gold nanoparticles, leaving carboxyl as the only functional group (Figure 1b). Therefore, the high sensitivity of these solutions around pH 3 to pH 5 was expected as the pK a of the carboxyl group is 4.32; GNPs become protonated below that pK a . Further, the peak absorption intensity of the GNPs-MPA also diminished as the pH dropped. The absorption intensity at SPR increased by almost 0.6 OD units with the pH incrementation from 2 to 8. This is expected as the pH drop below pK a of MPA causes more NPs agglomeration, which in turn reduces the number of free conduction electrons that can contribute to the surface plasmon. To confirm this, the aggregation/dispersion behavior of the NPs at multiple pHs below 5 was monitored through TEM imaging.
TEM images of the GNPs-MPA solutions at different pHs and their corresponding size distribution are shown in Figure 3, respectively. The NPs were heavily aggregated at strongly acidic conditions, and their dispersion improved as the pH increased. For instance, at pH 3.62, one can note that most NPs were aggregated with few nonclustered nanoparticles, and their size ranged from 11 nm to 511 nm. At pH 8.01, the NPs were evenly dispersed with no signs of big formed clusters, and their measured diameters were in the range of 5 nm to 40 nm. When the solution's pH decreased below 5, assemblies started forming, and those assemblies became denser as the pH got lower. The average size and morphology of the parent nanoparticles were not altered significantly. The latter remained circular, and the former only varied by less than 10 nm.
However, the polydispersity of the NPs was strongly pH-dependent, which was relayed through the standard deviation of the NPs' size. As the pH increased from 3.62 to 8.01, the standard deviation of the GNPS-MPA's diameter reduced from 45.3 nm to 5.8 nm. The latter indicates the NPs became more monodisperse, which can visually be confirmed through the respective TEM images. This behavior of the GNPs-MPA at varying pH conditions is governed by their interparticle interactions, namely: attractive and repulsive forces. At pH values above 5, the repulsive Coulombic forces among the carboxylate groups dominate and cause the NPs to disperse evenly. At pH less than 5, the carboxylic acid group becomes unionized; thus, aggregation occurs as a result of the van der Waals attractive forces [21]. The synchronized alteration of NPs' dispersion to aggregation state with pH change caused the illustrated change in the solutions' color from red to purple (Figure 2c). The aforementioned has also been reported with other mercapto compounds, like MUA, which are commonly utilized as GNPs stabilizers [7,37]. It is worth noting that in the absence of MPA citrate-reduced GNP solutions were unresponsive to all pH changes ( Figure S1). When the unmodified GNPs solution's pH was varied, only their absorbance shifted whereas their FWHM and position of SPR remained unchanged. However, the polydispersity of the NPs was strongly pH-dependent, which was relayed through the standard deviation of the NPs' size. As the pH increased from 3.62 to 8.01, the standard deviation of the GNPS-MPA's diameter reduced from 45.3 nm to 5.8 nm. The latter indicates the NPs became more monodisperse, which can visually be confirmed through the respective TEM images. This behavior of the GNPs-MPA at varying pH conditions is governed by their interparticle interactions, namely: attractive and repulsive forces. At pH values above 5, the repulsive Coulombic forces among the carboxylate groups dominate and cause the NPs to disperse evenly. At pH less than 5, the carboxylic acid group becomes unionized; thus, aggregation occurs as a result of the van der Waals attractive forces [21]. The synchronized alteration of NPs' dispersion to aggregation state with pH change caused the illustrated change in the solutions' color from red to Furthermore, the hydrogels were doped with GNPs-MPA through a simple breathing process described earlier, and the optical spectra over 15 cycles were obtained and are shown in Figure 4. As was shown in previous studies, the higher the number of cycles the higher the overall absorption and, more specifically, the absorption at the SPR [32][33][34][35][36][37][38]. These studies also report that after a certain number of cycles the absorption of the doped gel saturates, suggesting little or no more GNPs can diffuse into the pores of the gel; however, our reported absorption and transmission rate varied consistently and did not plateau over 15 cycles. The transmission at SPR reduced by almost 70% and peak absorption increased by 0.6 OD whereas the FWHM of the absorption peak was unaffected over 15 cycles. These optical changes were also evident from the increased intensity of the gel's color with increase in the number of BI-BO cycles, as shown in Figure 4c,d. Moreover, leaching of the GNPs from the hydrogel was assessed by placing it in DI water and measuring the optical changes over a one-month period; the recorded transmission spectra over that period is shown in Figure S2. Minimal changes in the spectra of the lenses were noted, suggesting GNPs were stable within the gel. purple (Figure 2c). The aforementioned has also been reported with other mercapto com pounds, like MUA, which are commonly utilized as GNPs stabilizers [7,37]. It is worth noting that in the absence of MPA citrate-reduced GNP solutions were unresponsive to all pH changes ( Figure S1). When the unmodified GNPs solution's pH was varied, only their absorbance shifted whereas their FWHM and position of SPR remained unchanged Furthermore, the hydrogels were doped with GNPs-MPA through a simple breath ing process described earlier, and the optical spectra over 15 cycles were obtained and ar shown in Figure 4. As was shown in previous studies, the higher the number of cycles th higher the overall absorption and, more specifically, the absorption at the SPR [32][33][34][35][36][37][38] These studies also report that after a certain number of cycles the absorption of the doped gel saturates, suggesting little or no more GNPs can diffuse into the pores of the gel; how ever, our reported absorption and transmission rate varied consistently and did not plat eau over 15 cycles. The transmission at SPR reduced by almost 70% and peak absorption increased by 0.6 OD whereas the FWHM of the absorption peak was unaffected over 1 cycles. These optical changes were also evident from the increased intensity of the gel' color with increase in the number of BI-BO cycles, as shown in Figure 4c,d. Moreover leaching of the GNPs from the hydrogel was assessed by placing it in DI water and meas uring the optical changes over a one-month period; the recorded transmission spectr Two gels were doped with 9 and 15 BI-BO cycles and utilized in the pH-responsive study; this was done to show the effect of the NPs' concentration on the pH-responsiveness of the doped gels. Both gels were placed in five solutions with distinct pH values. Images of the gels and corresponding optical spectra are demonstrated in Figure 5. Similar to the GNPs-MPA solutions, optical and colorimetric properties of the doped gels were also pH-dependent in the range of pH 3-5. Both gels were reddish in color at pH 6.80 (DI water), and as the pH decreased below 5, their colors started changing towards purple/indigo. One can note that for both gels differences were gradual and not abrupt. Nonetheless, below pH 3, the low concentrated gel showed a more apparent change in color. These changes were confirmed through the optical spectra of both gels. The gradual change is evident from the redshift in the transmission/absorption spectra of the GNPs-MPA gels. Below pH 3, the optical spectra of the low concentrated gel showed two transmission dips (absorption peaks) at 545 nm and 629 nm, which indicates high NPs' aggregation. Similarly, at pH 3, the highly concentrated sample showed an appreciable shift in SPR along with the formation of two transmission dips at 539 nm and 607 nm. Beyond pH 5, the GNPs-MPA doped gels were unresponsive to pH variations, as little or no shift in their absorption spectra was noticed. Also, minimal fluctuations in the transmission at SPR were noted in response to pH changes, which indicates the SPR position and FWHM of the transmission dip were the main optical attributes that were varying. Nanomaterials 2022, 12, x FOR PEER REVIEW 8 over that period is shown in Figure S2. Minimal changes in the spectra of the lenses noted, suggesting GNPs were stable within the gel. Two gels were doped with 9 and 15 BI-BO cycles and utilized in the pH-respo study; this was done to show the effect of the NPs' concentration on the pH-respon ness of the doped gels. Both gels were placed in five solutions with distinct pH va Images of the gels and corresponding optical spectra are demonstrated in Figure 5. Si to the GNPs-MPA solutions, optical and colorimetric properties of the doped gels also pH-dependent in the range of pH 3-5. Both gels were reddish in color at pH 6.8 water), and as the pH decreased below 5, their colors started changing towards purp digo. One can note that for both gels differences were gradual and not abrupt. Non less, below pH 3, the low concentrated gel showed a more apparent change in color. T changes were confirmed through the optical spectra of both gels. The gradual chan evident from the redshift in the transmission/absorption spectra of the GNPs-MPA Below pH 3, the optical spectra of the low concentrated gel showed two transmission (absorption peaks) at 545 nm and 629 nm, which indicates high NPs' aggregation. larly, at pH 3, the highly concentrated sample showed an appreciable shift in SPR a with the formation of two transmission dips at 539 nm and 607 nm. Beyond pH 5 GNPs-MPA doped gels were unresponsive to pH variations, as little or no shift in absorption spectra was noticed. Also, minimal fluctuations in the transmission at were noted in response to pH changes, which indicates the SPR position and FWH the transmission dip were the main optical attributes that were varying. Further, colorimetric analysis was done on 7 mm of each gel at different pH values using the "RGB Profiler" tool in ImageJ, and the RGB data were extracted and are plotted in Figure 6a. Also, the effect of the pH variation on the average RGB values for each gel is shown in Figure 6b. Firstly, the homogeneity of the gel's color was apparent as major fluctuations in the RGB data plot were negligible. The blue and green curves were overall at a constant value and remained relatively unchanged as the pH was varied. Red curves were generally higher than the blue and green curves except for the low concentrated gel at pH 2.76 for which blue was the highest. This was expected as the gel was violet in color at that pH. Moreover, the general trend was clear: as the pH increased, the red curve shifted upwards indicating the reddish shift in the gel's color. Hence, the plot of the red curve can be used to relay the real-time value of the pH. Indeed, the red curve of each gel showed a relatively linear behavior as the pH was varied between 3 and 5. The relative change of the red value with pH was 21 units/pH and 39 units/pH for the low and high concentrated gels, respectively.
On the other hand, the position of SPR and FWHM of the doped gels' transmission spectra were inversely proportional to pH; Figure 6c,d shows the pH-responsive behavior of these optical attributes for both gels. SPR's position and FWHM of both gels showed the highest variations between pH 3 and 5, yet one of the noticeable discrepancies was evident at pH 2.76, at which the low concentrated gel's SPR occurred at 587 nm. However, this was reported as an average of the position of the two transmission dips which were at 545 nm and 629 nm and formed as a result of the excessive aggregation. This can be thought of as a saturation limit for the sensor. Hence, the sensor has two saturation limits: (1) Below pH 3, excessive NPs' aggregation occurs, and color change becomes undistinguishable.
(2) Beyond pH 5, MPA becomes deprotonated, and NPs' color remains unchanged (reddish). As for the sensitivity, the position of SPR varied by almost 10 nm and 6 nm per pH unit for the low and high concentrated gels, respectively. Similarly, the FWHM shifted by 28 nm per pH unit for the low concentrated gel and by twice of that for the high concentrated gel (55 nm/pH unit). The colorimetric and optical variations indicate that the highly concentrated sample was generally more sensitive.
In addition, GNPs were also incorporated into hydrogels without utilizing MPA, and their images and corresponding transmission spectra are shown in Figure S1b. The GNPs doped gels were unresponsive to pH variations as their images showed that they did not change color. The transmission only decreased by 4%, while the SPR and FWHM remained relatively unchanged. These results were similar to the previous findings regarding the pH-responsiveness of the GNPs solutions (without MPA), confirming the idea that functionalization of GNPs with MPA is responsible for their synchronized aggregation/dispersion state. Further, colorimetric analysis was done on 7 mm of each gel at different pH values using the "RGB Profiler" tool in ImageJ, and the RGB data were extracted and are plotted in Figure 6a. Also, the effect of the pH variation on the average RGB values for each gel is shown in Figure 6b. Firstly, the homogeneity of the gel's color was apparent as major fluctuations in the RGB data plot were negligible. The blue and green curves were overall at a constant value and remained relatively unchanged as the pH was varied. Red curves were generally higher than the blue and green curves except for the low concentrated gel at pH 2.76 for which blue was the highest. This was expected as the gel was violet in color As for potential applications, these gels can be employed in areas where real-time sensing of strongly acidic fluids might be required. For instance, gastric acid or stomach acid normally has a pH of around 3 [39]. Hypochlorhydria, a condition in which one has low levels of stomach acid due to infections or digestive problems, occurs when the pH of the stomach is between 3 and 5. More severely, if the person's stomach pH is above 5, he/she is characterized as having achlorhydria, which indicates the complete loss of hydrochloric acid in the stomach [40]. The pH detection limit of the developed gel is within the pH range of the aforementioned conditions. Therefore, continuous monitoring of the stomach acid using this gel can detect and potentially prevent the development of such conditions. The gel can be placed or attached to an optical fiber probe and be used as a continuous pH monitoring device for gastric acid. On the other hand, the position of SPR and FWHM of the doped gels' transmission spectra were inversely proportional to pH; Figure 6c,d shows the pH-responsive behavior of these optical attributes for both gels. SPR's position and FWHM of both gels showed the highest variations between pH 3 and 5, yet one of the noticeable discrepancies was evident at pH 2.76, at which the low concentrated gel's SPR occurred at 587 nm. However, this was reported as an average of the position of the two transmission dips which were at 545 nm and 629 nm and formed as a result of the excessive aggregation. This can be thought of as a saturation limit for the sensor. Hence, the sensor has two saturation limits: Furthermore, the repeatability and time response capabilities of the GNPs-MPA doped gel were assessed by switching it between acidic and basic conditions and recording its optical spectra over three cycles (Figure 7a,b). When the gel was removed from a solution with pH 8.72 and placed in a solution with pH 2.16, the color changed abruptly from red to indigo. SPR's position redshifted by approximately 14 nm, and FWHM increased by 40 nm. These variations are in-line with the findings presented earlier. Over three cycles, the doped gel showed reversible optical performance (Figure 7c,d). Ranges of variation for the transmissivity, SPR, and FWHM over the three cycles were 2.5%, 2.4 nm, and 4 nm, respectively, which indicate the excellent dispersion/assembly property of the doped gel. Moreover, the colorimetric switch of the doped gel in response to a pH alteration was almost instantaneous as shown in Figure 7c,d. A short video was added to the supplementary data, which confirms instantaneous and reversible change in color as the gel is switched back and forth between basic and acidic solutions. Discrepancies in the time data from the plots (Figure 7c,d) were due to the time difference between placing the sample and taking the measurement. The distribution of the NPs within the pH-responsive doped gel was examined b taking cross-sectional images of the gel after it was placed in both pH solutions (2.16 an 8.72), and the resulting images are shown in Figure 8. Most GNPs at pH 8.72 were even dispersed and did not form large assemblies; in fact, their dispersion was similar to th NPs in GNPs-MPA solution at pH 8.01 (Figure 3d). However, at pH 2.16, GNPs we heavily aggregated and formed big clusters. One can observe that the clusters are clear comprised of numerous NPs. The latter confirms the synchronized dispersion and assem bly of GNPs within the gel upon the quick pH variation. These findings were similar the ones deduced from the TEM images of the GNPs-MPA solutions. Moreover, the ability of the gel to be used as a rapid colorimetric/optical switch upon pH change makes it useful for various applications such as drug delivery and biosensing. For instance, drug delivery within the stomach (pH 2-3) or intestine (pH 7) requires a pH-responsive mechanism, and previous studies have focused on pH-triggered electrical, structural, and physical switches [41,42]. Nonetheless, the pH-sensitive doped gel may be used as a colorimetric switch, which is simple yet would not alter the physical properties of the gel like other mechanisms could.
The distribution of the NPs within the pH-responsive doped gel was examined by taking cross-sectional images of the gel after it was placed in both pH solutions (2.16 and 8.72), and the resulting images are shown in Figure 8. Most GNPs at pH 8.72 were evenly dispersed and did not form large assemblies; in fact, their dispersion was similar to the NPs in GNPs-MPA solution at pH 8.01 (Figure 3d). However, at pH 2.16, GNPs were heavily aggregated and formed big clusters. One can observe that the clusters are clearly comprised of numerous NPs. The latter confirms the synchronized dispersion and assembly of GNPs within the gel upon the quick pH variation. These findings were similar to the ones deduced from the TEM images of the GNPs-MPA solutions.

Conclusion
In this paper, we have synthesized pH-responsive GNPs that were functionalized with MPA (pKa 4.32) and incorporated them into hydrogels. The gel was mostly responsive in the pH range of 3-5. The highest SPR position and FWHM sensitivities towards pH were 10 and 55 nm per pH unit, respectively. Hence, utilization of the FWHM in measuring pH might yield better and more reliable results than using the SPR position. Other optical parameters like the peak absorption intensity were varying non-monotonically with pH, suggesting they cannot be used to infer the pH of the medium. TEM and SEM images showed synchronized dispersion and aggregation of NPs with pH change. The gel displayed high reversibility, repeatability, and instantaneous response time. As it operates in a similar pH range, the gel can be utilized as a continuous pH monitoring device for the gastric acid in the stomach. Also, exploiting its rapid pH-responsive capability, the gel can be used as a colorimetric switch for drug delivery applications. The colorimetric analysis of the gels showed linear relation between the red values and pH; thus, color-detecting applications on smartphones can be developed and employed to relay real-time pH values without the need for optical spectrophotometers. Finally, contact lenses were used as representative hydrogel materials and were successfully doped with GNPs-MPA. These contact lenses could similarly be doped with functionalized pH-responsive GNPs around physiological range (pH 7) to continuously monitor the pH of the eyes' tears and prevent potential diseases that can occur due to pH fluctuations.

Supplementary Materials:
The following supporting information can be downloaded at: www.mdpi.com/xxx/s1, Figure S1: GNPs synthesized without MPA. (i) Images and (ii) absorption and transmission spectra of (a) the solutions and (b) lenses at different pH values.; Figure S2: Transmission test for the MPA-GNPs gel over a one-month period to assess NPs' leakage.; Figure S3: EDS analysis for the MPA-GNPs gels at pH (a) 2.16 and (b) 8.72.; Figure S4: FTIR analysis of the MPA-

Conclusions
In this paper, we have synthesized pH-responsive GNPs that were functionalized with MPA (pK a 4.32) and incorporated them into hydrogels. The gel was mostly responsive in the pH range of 3-5. The highest SPR position and FWHM sensitivities towards pH were 10 and 55 nm per pH unit, respectively. Hence, utilization of the FWHM in measuring pH might yield better and more reliable results than using the SPR position. Other optical parameters like the peak absorption intensity were varying non-monotonically with pH, suggesting they cannot be used to infer the pH of the medium. TEM and SEM images showed synchronized dispersion and aggregation of NPs with pH change. The gel displayed high reversibility, repeatability, and instantaneous response time. As it operates in a similar pH range, the gel can be utilized as a continuous pH monitoring device for the gastric acid in the stomach. Also, exploiting its rapid pH-responsive capability, the gel can be used as a colorimetric switch for drug delivery applications. The colorimetric analysis of the gels showed linear relation between the red values and pH; thus, color-detecting applications on smartphones can be developed and employed to relay real-time pH values without the need for optical spectrophotometers. Finally, contact lenses were used as representative hydrogel materials and were successfully doped with GNPs-MPA. These contact lenses could similarly be doped with functionalized pH-responsive GNPs around physiological range (pH 7) to continuously monitor the pH of the eyes' tears and prevent potential diseases that can occur due to pH fluctuations.

Supplementary Materials:
The following supporting information can be downloaded at: https: //www.mdpi.com/article/10.3390/nano12091486/s1, Figure S1: GNPs synthesized without MPA. (i) Images and (ii) absorption and transmission spectra of (a) the solutions and (b) lenses at different pH values.; Figure S2: Transmission test for the MPA-GNPs gel over a one-month period to assess NPs' leakage.; Figure S3: EDS analysis for the MPA-GNPs gels at pH (a) 2.16 and (b) 8.72.; Figure S4: FTIR analysis of the MPA-GNPs solution.; Video S1: Visual representation of the rapid colorimetric change of the gel as it is switched between pH 2.16 and pH 8.72.  Informed Consent Statement: Not applicable.

Data Availability Statement:
The data presented in this study are available on request from the corresponding author.

Conflicts of Interest:
The authors declare no conflict of interest.