The photoluminescence properties (PL) of Eu3+ hosted in the hydroxide layers of layered double hydroxides (LDHs) enables calibrationless quantification of anions in the interlayers. The concept is demonstrated during the nitrate-to-carbonate ion exchange in Zn2+/Al3+/Eu3+ LDHs and can be implemented as a remote optical sensor to detect intrusion of anions such as Cl- or CO32-.