Text this: Synthesis of a new type of pyridine phosphonic acid Tb(III) coordination polymer guided by energy level matching and high-sensitivity detection of Fe3+.