Molecular and supramolecular systems for sensing and actuation