In addition to storing your herbs and spices properly (see above), you should also:
Keep your cooking spices closed: Close the container tightly as soon as you finish using it.
Use dry measuring spoons: Avoid dipping even a slightly wet spoon into the container.