Text this: An AI-Driven Model to Enhance Sustainability for the Detection of Cyber Threats in IoT Environments