The present disclosure relates to the production and use of ultrasmall luminescent nanoparticles coupled to dyes and the obtained nanoparticles exhibit functionalities that can be highly sensitive to the local chemical environment changes. These nanoparticles may act as ultrasmall nanosensors to ratiometrically report pH or glutathione in the local environment.