A ferrocene-based heteroditopic receptor containing urea and crown ether units shows electrochemical responses to dihydrogenphosphate and fluoride anions. K+ cations can only be detected in the presence of dihydrogenphosphate.