Chemosensor for the optical detection of aliphatic amines and diamines.