Embodiments of the present disclosure provide for methods of detecting, sensors (e.g., chromogenic sensor), kits, compositions, and the like that related to or use tunable macroporous polymer. In an aspect, tunable macroporous materials as described herein can be used to determine the presence of a certain type(s) and quantity of liquid in a liquid mixture.