A Zn based two-dimensional metal-organic framework as a dual ion sensor in aqueous media.