Text this: AI-based routing algorithms improve energy efficiency, latency, and data reliability in wireless sensor networks