Selective and recyclable tandem sensing of PO43- and Al3+ by a water-stable terbium-based metal-organic framework.