A potentiometric selectivity coefficient defines the ability of an ion-selective electrode to
distinguish one particular ion from others. The selectivity coefficient, K is evaluated by means of the emf response of the ion-selective electrode in mixed solutions of the primary ion, B, and interfering ion, C (fixed interference method) or less desirably, in separate solutions of B and C (separate
solution method).  For example, a potassium ion-selective membrane electrode utilizes the naturally occurring macrocyclic antibiotic valinomycin. In this case the cavity in the macrocyclic ring is just the right size to encapsulate the potassium ion, but too large to bind the sodium ion, the most likely interference, strongly.
Chemical sensors, are being developed for specific target molecules and ions in which the target (guest) form a complex with a sensor (host). The sensor is designed to be an excellent match in terms of the size and shape of the target in order to provide for the maximum binding selectivity. An indicator is associated with the sensor which undergoes a change when the target forms a complex with the sensor . The indicator change is usually a colour change (gray to yellow in the illustration) seen in absorbance or, with greater sensitivity,  luminescence. The indicator may be attached to the sensor via a spacer, in the ISR arrangement, or it may be displaced from the sensor, IDA arrangement.