Detection of silver ions is based on a frequency shift of a resonator upon interaction between silver ions and cytosine bases.