Apple published a patent application on Thursday covering an embedded environmental sensor capable of sampling both gas and liquids, a component that could one day make its way inform iPhone and Apple Watch owners of potential dangers in their surrounding environment.