Cd-Based metal-organic frameworks from solvothermal reactions involving in situ aldimine condensation and the highly sensitive detection of Fe3+ ions.