Environmental, chemical and medical sensors