Recent advances in the construction of functionalized covalent organic frameworks and their applications to sensing.