Arduino Mega 2560 [9] is used as a microcontroller for this project to build a stand-alone system, hence the system
does not need to be required to connect to the computer. Arduino provide an open-source computing platform. A simple I/O development board is used to write the programming. Moreover Arduino Mega 2560 boards can be interfaced through any of the computer operating systems such as Mac, OS X, Windows, and Linux. The pin allocated for interfacing the components is shown below in Fig. 4.