Due to defining molecule-framework interactions, COFs can be used as chemical sensors in a wide range of environments and applications. Properties of the COF change when their functionalities interact with various analytes enabling the materials to serve as devices in various conditions: as chemiresistive sensors, as well as electrochemical sensors for small molecules.