Text this: A Comprehensive WSN-Based Approach to Efficiently Manage a Smart Grid