This section describes the proposed architecture and design of flexible and low
cost home controlling and using the Internet of Things. The architecture is
divided into three layers: Home Environment, Home Gateway and Remote Environment
(see Figure 1). Remote Environment represents authorized users who
can access the system on their Smart phone app or the website using the Internet
via high speed Wi-Fi or 3G/4G network. Home Environment consists of Home
Gateway and a hardware interface module i.e. sensors and relays connected to
the Arduino Mega 2560 micro-controller. The primary function of the Home
Gateway for the proposed architecture is to upload sensor data to the dedicated
server and download the
Relay data from the same using the Internet. The main component of the Home
Gateway is a Web – client based on