The exponential growth of the number of devices that are connected to the internet is increasing. At present, there are more than 13 billion devices are connected and it was predicted that this number reaches up to 25 billion by 2020. In an Internet of Things ecosystem, these devices
are embedded to perform specific tasks in which they cannot take decisions. When there is an emergency state in any one of the nodes, the other nodes also produce the traffic simultaneously which makes the border router busy and creates a delay in message propagation and causes loss to the
productivity. In the proposed architecture, Software Defined Networking offers a solution to this problem by making wireless sensor network more intelligent and also makes network capable of making self-decision during emergency state. In the proposed architecture an Open vSwitch installed
on a Raspberry Pi as a Data Plane and Open Network Operating system, Mininet can be used as a Control Plane. The NodeMCU-ESP8266 wireless devices act as end nodes. A routing path with minimum latency during critical traffic can be implemented using Software Defined Networking.