A dynamic covalent imine gel as a luminescent sensor.