A highly selective and sensitive boronic acid-based sensor for detecting Pd2+ ion under mild conditions.