An Overview of the Architecture – How IoT Works