The interaction between probe and Cu2+ can be tuned for detection of Cu2+ and S2−. Cu2+ acts as a selective recognizing guest and a decomposition promoter. The probes can be tuned to construct Cu ensembles for selective detection of S2−. The Cu ensembles show reversible property for selective detection of S2−.