In this letter, we report on the development of a surface molecular sensor for the detection of acidity. Lithographically controlled wetting deposition has been applied to form the nanostructure of a new fluorescent compound with three protonation states featuring different optical properties on a glass substrate. Atomic force microscopy demonstrates the functionalization of fee surface with ordered arrays of the sensor molecules. The fluorescence properties of the resulting nanopattern at different pH values have been investigated by confocal fluorescene microsopy, thus revealing the fast, sensitive, reversible response of the prepared nanosensor to gas flows of varying acidity. © 2008 American Chemical Society.