Smart Clothline System Based on Internet of Thing (IoT)

. Along with the growth of economic and infrastructure development, the level of invention or technologies is increasing steadily. These modern technology or invention is very useful to help people ease their daily life. Nowadays, there are many new inventions that have been developed due to the people demands. This is supported by the development of new technologies. This is because people nowadays are busy with their household management or have long working hours that makes they do not have enough time to do all home works such as pick up their clothes at their cloth line. To handle this problem, an Internet of Thing (IoT) Smart Cloth Line is one of the solutions. In this project, a smart cloth line is used to avoid the clothes from moistened with rainwater. When rain falls, the mechanical parts of cloth line will compress and expand when rains stop. The cloth line consists of Arduino UNO microcontroller, rain sensor, LDR, temperature and humidity sensor, servo motor and LCD display. During rainy day, the rain sensor will detect the present of water and servo motor will compress the mechanical parts of the cloth line. This is also an IoT based project so when anything happens when it is raining, it will automatically send notification to the user smartphone. The users also can get notification of temperature, humidity and intensity of light around their cloth line. Obviously, this project can help people in their daily life.


Introduction
Nowadays, housing is one of the important needs of society. In the modern world and better economic situation, the demands of having a safe and comfortable home is increasing rapidly for many people in urban areas since most of the people turning to technology in order to improving the daily life [1,2]. The main purpose of smart home is to make sure homeowners can create comfort and safe when they inside or outside the house beside the home is built friendly to the environment, preventing social problems, how space it uses, or energy efficiency, maintaining privacy and recycling waste water [1,2]. An intelligent smart home system has their own computer system which is able to monitor many aspects of daily life. It's consist of home appliances, sensors, actuators, analyser, data processors [3]and can be applied either by wired or wireless [4].
The Internet of Things (IoT) is a device that connected to the network by any location within the globe that can be monitored and controlled remotely by user [5,6]. The IoT that was first introduced by Kevin Ashton in 1999 is not something new since there are various implementation in many years ago in many places [2,7,8]. For example, [1] developed as smart home based on Raspberry PI and Android mobile device to manage smart home behaviour by easy to implement, flexible and scalable solution. The Development of Energy Saving Smart Home Prototype by Panna [9] developed an IoT smart home prototype using PIC18F458 microcontroller with the purposed to save electricity. Besides that, Piyare and Song built "Smart Home-Control and Monitoring System Using Smart Phone" to control and monitoring using micro-web server and smartphones. This work used an Arduino as a main controller to transmit data from the sensor to mobile user [10]. In IoT smart home development, there are many types of microcontroller that was implemented such as Arduino Uno, Arduino Mega, Raspberry PI, Global System for Mobile (GSM) and NodeMCU.[1, 2, 5, 10-12].

Methodologies
This project consists of 3 major parts: Hardware, Software and Simulation parts.

Hardware Design
The system hardware consists of three main modules which are sensing module, controller module and output module. Figure 1 shows the overall block diagram for IoT Smart Cloth Line system. The sensing modules are temperature and humidity sensor, Light Dependent Resistor (LDR) and rain sensor. The rain sensor is used to detect the present of water. The water will complete the circuit board that has been printed onto the rain sensor. It will act like a variable resistor where the more water on the board, the less the resistance value. This work used a capacitive humidity sensor and the thermistor to measure the surrounding air. It sends the signal to the data pin in digital by changing the total capacitance. This capacitance value is proportional with the humidity value. The output module consists of DC motor and liquid crystal display (LCD). The DC motor can rotate until 180° in total. As the DC motor move, the potentiometer will move as well until shaft reach the desired position. The potentiometer is used to change the value of resistance according dc motor's rotation. Then, the control unit will calculate the movement  Figure 2 shows the schematic diagram that shows the connections between all the components using Proteus software.

Simulation Design
The flowchart for the overall system is shown in Figure 3. In default condition, the Smart Cloth Line is originally expanding. Then, the rain sensor will detect the present of water and the LDR used to detect the present of light. Both sensors, LDR and rain sensor used to detect the respective elements. When the sensors detect these elements, it will send input data to the microcontroller, and then the Cloth Line will be compressed. Temperature and humidity sensor is added to add features in this work whereby it will detect the temperature and humidity from the surrounding. The microcontroller, Arduino Uno will coordinate the system by calculating the input from all sensors either to compress or expand the Smart Cloth Line system. Then, the system will send the notification to the user through mobile phone using Blynk application. The void is used to read input from LDR and rain sensor. If the condition of rain sensor is true and LDR is below or equal to 300, Arduino will send notification to Blynk app according to the message and the servo is set to 0°. If the other condition is met the servo is set to 45°.

Results and Discussions
The prototype of Smart Cloth line system is shown in Figure 4. At first the temperature and humidity sensor detect the surrounding temperature and humidity, then it will be display on the LCD display. If the rain sensor did not detect any presence of water, the servo motor in position 0° which mean the cloth line is expand as shown in Figure 5. Next is when the rain sensor detects the present of water, so the servo motor moves at angle 45° which makes the cloth line compress as shown in Figure 6. Then, LCD shows the actual reading of temperature and humidity from the surrounding as shown in Figure 7. Then, Blynk application will send the notification to the user about the current temperature and humidity as shown in Figure 8.