This document presents a new routing algorithm called SMA (solar aware routing with mobile agent concept) for wireless sensor networks that aims to improve energy efficiency. The SMA algorithm has two phases: a set-up phase where the sink node calculates the shortest paths from sensor nodes to solar-powered auxiliary sink nodes; and a steady state phase where mobile agents circulate along the determined paths to gather data from sensor nodes and send it to the sink node via the solar nodes. The document evaluates SMA through simulations and finds it outperforms existing client-server and mobile agent approaches in terms of energy consumption, end-to-end delay, and overall cost.