You don't really need to detect organic molecules. If anyone detected 21% oxygen (O2, inorganic) in Earth's atmosphere, they sure knew something was going on. Lifeless planets like Venus, Mars, have atmospheres that are close to chemical equilibrium. And Earth's atmosphere is far from equilibrium, free oxygen it much too reactive and wouldn't exist without photosynthesis continuously producing it.