A Study on the Adaptability of Immune System Principles to Wireless Sensor Network and IoT Security