Novel 15-crown-5 ether or beta-diketone incorporated gadolinium complexes for the detection of potassium ions or magnesium and calcium ions.