A mixed-functionalization strategy on In-MOF realizes high sensitivity detection of heavy metal ions, anions and small molecules.