Molecules in space are detected through their emission and absorption lines in the electromagnetic spectrum. Radio telescopes are particularly useful for observing molecular clouds, as many molecules emit radio waves. Infrared telescopes can also detect molecules that emit in the infrared part of the spectrum. By studying these emissions, scientists can identify the types and abundances of molecules in different regions of space.