The propagation of terahertz waves in two-dimensional photonic-crystal waveguides was studied computationally to investigate the effects of introducing small quantities of molecules, such as deoxyribonucleic acid, into selected air holes for sensor applications. Comparison with bulk systems shows that photonic-crystal waveguides are promising for biochemical sensing. (c) 2005 American Institute of Physics.