Applications of temperature and humidity monitoring system at aerophonic plants based on IoT

. Indonesian agricultural system has improved significantly along with technological developments. However, as a result of technological developments, agricultural land becomes narrow. To overcome the increasingly narrow farming land, start developing systems suitable for planting with aeroponic system. Unpredictable environmental climate changes can disrupt productivity growth and create low quality crops. To solve this problem, monitoring system based on Android needed. This system is used to monitor in parameters change,the parameters include temperature and humidity. Android-based monitoring system uses java programming and is open source, besides the user can monitor the development of spinach plants, by looking at data that has been stored into the database so that users can know the development of the plant. This application can be accessed via smartphone with android operating system as a client server.


Introduction
Indonesia's agricultural system has begun to develop cultivation systems with various systems. One example of a system that began to be developed is the aeroponic system, using the air media by hanging plants on the air and then the nutrients sprayed on the roots of plants [1]. Plants suitable for aeroponic systems are vegetables [2]. The object used in this study is spinach, because spinach requires a relatively short cultivation time of 25-35 days after planting [3]. Spinach plants require temperature, humidity, carbon dioxide levels and sufficient lighting to grow well. If one of these parameters is not met or excessive then the crop is not maximal and cause the spinach plants to dry will not even grow [4].
The effects of climate change in agriculture are characterized by floods, droughts and rainy seasons. Climate change leads to reduced productivity growth and low quality crops [5]. It requires a continuous monitoring system from seed planting to harvest time. Manual monitoring of plant growth has limitations caused by human physical factors including fatigue, non-continuity, uniformity and inaccuracy. The solution of the problem is by applying technology in the form of remote monitoring. Remote monitoring is very effective because the results of direct monitoring data are stored in the database [6].
The monitoring system research on spinach plant is focused on monitoring system only with parameters of temperature, humidity, light intensity and carbon dioxide levels. The differentiator of this study with previous research [8][9][10] is to use android application for remote monitoring on spinach plants with aeroponic system. Android is one of the operating systems for linux-based mobile devices that include operating systems, middleware, and applications. Android is made by using Java programming and is open source so it can grow quickly and also provide an open platform [7]. Application of aeromosis can monitor the development of spinach plants, by looking at data that has been stored into the database so that users can know the development of the spinach plant. This application is accessed via smartphone with Android operating system and is client server.

Research methods
The design of research monitoring system (aeromosis) is divided into 4 stages namely, system design, architecture design (linking between the database with android), designing the application and programming view on android studio, and testing applications against multiple smartphones. Flow diagram design research can be seen in Figure 1.  Figure 1 describes the steps to be used in this study. The first phase begins with the analysis phase and system implementation. The second stage is the stage to connect the client with the server. In the process of connecting the database to the application monitoring system using JSON (JavaScript Object Notation) format. The third stage discusses the design of the application display and programming on the android studio software. The fourth stage is the last stage of testing the application system, whether the system runs according to the design or not as well as on a variety of smartphones.

Design Architecture
The architecture design of the monitoring system application research aims to connect the client with the server via the internet. Client will request server to get information about the last condition parameter. The depiction of the architectural design flow can be seen in Figure 2.  Which consists of database, web server, internet and client server ie smartphone. The database is created using MySQL, which connects to the webserver. In order to connect between database, web server, and smartphone required internet network.

Application and Programming Display Design on Android Studio
This design begins by creating a block diagram of the display sketch of the application content (description of the application content). The block diagram can be seen in Figure 3. Figure 3 illustrates the description of the contents of aeroponic monitoring system application (aeromosis) consisting of a main menu containing temperature and humidity content, aeroponic discussion (containing questions and answers about aeroponics), and exit application). Figure 3 can run with any programming on the android studio software. The programming stage of android studio is very important in making the application of aeromic monitoring system (aerophonic monitoring system). In android studio there are two programming languages that is xml to make the application and java display to run the application display in order to run in accordance with the design. Figure 4 describes the steps in data retrieval for the application of this monitoring system (aeromosis). Data stored on the database, connected with php files that have been uploaded on the web server. Connecting data from the database into this aeromosis application by calling the database url in the java file in android studio. Once the url is entered into java programming, the application can access the data with the internet connection.

Results and discussion
All menus can run because of coding. Coding is a process of translation of design or application design from the main menu to the existing menu in it into the java programming language to be a unity in order to become a medium that can be used in accordance with the design. Testing is very important because at this stage aims to determine whether the menu in the application can run correctly and to determine the shortcomings or errors that must be corrected. Testing the application is done using a smartphone.

Running application
The most important stage for aeromosis applications to be used is the stage of running the application. At this stage the application is run using a smartphone (USB Debugging), this stage is also a stage to test the application can run in accordance with the design or not. The application runs on Lenovo brand A6600d40 smartphone with android 6.0 operating system, API 23 and 5-inch screen size. Here are the steps in running the application using a smartphone:

Preparing smartphones as well as Micro USB to USB cable. Then open Developer
Mode (Smartphone Mode) on your smartphone. If Developer Mode does not appear on the smartphone, enter the settings first, then enter the about phone menu, select the build number (press 5 times) until the message appears if the smartphone has become a developer. 2. Enable USB debugging on smartphone by connecting smartphone with PC using USB cable. Enable developer mode through the settings menu, by searching for USB debugging. 3. Run the application by Run on the android studio software, and search auto smartphone will become emulator and appear on the screen android studio software. Once the smartphone that we use appears then click OK, and wait until the compile process is complete. The application will appear on the smartphone screen.

Monitoring system application view
The aeromosis application displays the values of those parameters, the graph data that serves to see the values of the parameters that have been stored into the database in the form of line graphs, some questions and answers about aeroponics. Interface testing is done on the main menu to make sure the menus in the main menu interface can run according to the design. Display applications in accordance with the design using a smartphone with 5inch screen size, operating system android 5.0.0 as the brand Lenovo A6600d40 hp. Figure 5 is an aeromosis display, a splashscreen menu, a main menu, an aeroponic discussion menu and an exit menu. In the splashscreen display contains a logo that describes the application with aeroponic writing (in aeroponic monitoring system).

Fig. 5. Display of Aeromosis
Splashscreen duration of about 5 seconds, then after automatically going to the main menu view.
The main menu consists of imageslider and some menu options. Imageslider on this main menu contains some animations that can shift automatically with delay every two to three to move from one image to another. After the three image will automatically move to the first image. In addition to the main menu imageslider also displays some menu options are: temperature menu, and humidity menu aeroponic discussion menu and exit menu.

Menu of temperature
Aeromosis is an aeroponic plant monitoring application that focuses on spinach. In aeromosis applications, this temperature menu displays values in real time graphs and lines. Display the menu menu temperature can be seen in Figure 6.

Menu of humidity
The humidity parameter menu display does not vary much with the temperature menu menu view. The humidity parameter menu display can be seen in Figure 7.

Testing of Device Screens
Tests on various screen devices done to check the system can work well or not on other smartphones. In this study using 10 kinds of smartphones with different types and specifications like can be seen in Table 1.
Test results from various screen device sizes in Table 1, obtained successful measurements 9 and 1 failed on the smartphone. Failure on this test is caused by screen display that is not in accordance with the design. This failure occurs because the application is run on a smartphone with a screen size of the device under 4 inches and the operating