Plastic production and worldwide use of plastic materials have continued to rise due to their convenience and excellent marketing advantages. This is generating an environmental crisis and global scale pollution which is one of the greatest threats to our planet. One of the best responses could be accomplished by improving recycling and waste management strategies. In this paper we conducted Raman analyses of representative stock of plastics aged in terrestrial or aquatic environments spanning in age up to 15 years. We aimed to establish any potential influence of the aging conditions on the Raman signature of specific plastics. This information is further used to build up a Raman logic gate for automatic sorting of plastic waste recovered from environment. Pigments and aging introduced indeed small changes in the Raman signature of the respective plastics. However, we were able to identify unique spectral ranges characteristic for the main plastic types and intensity threshold of fingerprint bands sufficiently strong for building robust Raman barcodes for sorting. Waste plastics Raman data handling and the proposed methodology for sorting complies with the FAIR (Findability, Accessibility, Interoperability and Reusability) principles of scientific data, being useful for researchers, policymakers and stakeholders. Our spectral characterization of solid plastic waste comes in support of improved waste plastic management and could have economic and environmental positive impact.