Towards green computing: intelligent bio-inspired agent for IoT-enabled wireless sensor networks