Programmable polymer-based supramolecular temperature sensor with a memory function.