Text this: Principles of chemical and biological sensors