A switch is used in circuits which interact with electromagnetic radiation. A determining unit determines, during the write disable, whether an output of the shock sensor is a detection output of the shock sensor due to a shock or an erroneous detection output of the shock sensor due to power supply fluctuations. These compounds may range in size from oligonucleotides to full length sequences.