m-Dansylaminophenylboronic acid reacts with vicinal diols (hydroxyl groups on adjacent carbon atoms) and certain amino alcohols to form cyclic complexes that a have a fluorescence intensity and peak emission dependent on the environment of the dansyl fluorophore.