Millimeter and infrared observations of deuterated molecules