Environmental Aware Wireless Sensor Networks for Reconfigurable Manufacturing Systems