Security system with RFID control using E-KTP and internet of things

Received Jan 30, 2021 Revised Mar 30, 2021 Accepted Apr 8, 2021 Crimes against property without using violence, in this case, are theft and burglary is the type of crime that is most common every year. However, home security needs a security system that is more efficient and practical. To overcome this, an internet of things (IoT) is needed. This research evaluated the performance prototype by reading distance from the radio frequency identification (RFID) reader using E-KTP and quality of service performance (i.e throughput and delay) from application android. This research design smart door lock using RFID sensor, passive infrared sensor (PIR), solenoid as door locks, buzzer, led, E-KTP as RFID tags and also android application to controlling and monitoring made with android studio is connected to NodeMCU V3 ESP8266 as storage data and connect with firebase realtime database instead of conventional keys. This research focuses on performance prototype and quality of service from features application is work well. Related to previous works, our evaluation shows that the performance prototype can read identity card (E-KTP) with a maximum distance is 4 cm, and performance quality of service for an application show that throughput and delay with a perfect index according to standardization telecommunications and internet protocol harmonization over network (TIPHON) depending on what features are being evaluated.


INTRODUCTION
In this era of technology, the internet of things (IoT) helps a lot in connecting several devices. IoT can be defined as a global infrastructure that enables advanced services by interconnecting [1]. IoT is the interconnection amongst devices via internet, and it enables those devices to send and receive data [2]. IoT become major interest as results of technology development and industry [3]. With the technological development, the demand for smart things is drastically increased in daily-life. The IoT is one of the major components that provide a facility to interact with IoT-enabled devices [4]. The application of IoT has been widely implemented in every sector such as security systems [5], [6], industry [7], [8], agriculture [9]- [11], E-commerce [12], and medicine [13]- [15]. Internet of things can also be used as a controlling, and monitoring home. Home security is a very important feature of home automation and maybe the most crucial one [16], the security level in the home becomes more important and enhanced system always [17], home security system is now paramount because family and home property needs a secure place and safe. Houses and its surroundings must be fully protected from malicious disturbances [18]. However, home security still 1437 uses a conventional key, and using a conventional key is not safe from crime. the crime of theft without the use of force like theft and burglary is the type of crime that is the most numerous in terms of number each year [19]. According to the Central Bureau of Statistics, during the period 2011-2018, the type of theft incident was a crime the most common in villages in Indonesia, the number reaching more than 36-45% of all villages. The percentage of villages that experienced thefts in the 2011-2018 period continued to increase. In 2011, 36.78% of villages experienced thefts. In 2014 this figure increased to 41.05% and in 2018 to 45.01% [19]. Based on the research and analysis of home door security system that is being faced by every housing in the capital city, the proposed solution for home security is to design a prototype of home door security system using a radio frequency identification (RFID) system from E-KTP that use a microcontroller as a doormap in a door-based digital home security system [20]. The use of E-KTP as an RFID tag because the function of E-KTP is still minimal and only use for a unique and authentic identity of the population in Indonesia [21]. Identity card (E-KTP) have near field communication (NFC) technology inside it. NFC is a short-range radio technology that allows communication between devices by touching each other or holding adjacent devices [22]. It is a new technology safer than standard RFID [23], E-KTP conforms to ISO 7810 with a format the size of a credit card, namely 53.98 mm x 85.60 mm. Data storage on the chip is in accordance with international standards national institute of standars and technology interagency report (NISTR) 7123 and machine readable travel documents international civil aviation organization (ICAO) 9303 and european union (EU) passport specification 2006. Based on the international standard organization/international electrotechnical commission (ISO/IEC) 7810: 2003 manual, a card with the ISO/ICE 7810 standard is an identification card that belongs to the same smart card class. with a card with ISO/IEC 14443 standard which can be used as an identification card [24]. Various security system for smart door lock has been produced in smart door lock today. Table 1 summarizes the sensing, communication, and support system used by a few IoT-based smart door lock and general systems found in the literature. The purpose of the review was to study the common devices and sensors for the sensing system, options for the communication systems, and the features of the support system. In this paper, the security system with RFID control using E-KTP and IoT using NodeMCU V3 ESP8266 as a microcontroller, RFID sensor, PIR sensor, solenoid, led, buzzer, relay. NodeMCU ESP8266 connects to the internet and uses firebase as a real-time database. Firebase is used to store serial number/unique identification data from E-KTP (UID), data from PIR sensors. Firebase realtime database is a cloud-hosted database. Data is stored as java script object notation (JSON) and synchronized in real-time to every connected client [30]. Communication of RFID is usually performed by a magnetic field, but once electrodes for electric capacitive coupling are used instead of coils for electromagnetic induction by the magnetic field between them, it is possible to read wearable RFID tags [31]. In the android application, it is connected to firebase and in the android application, there is an alert feature, an open feature, and a lock feature. where the open feature and the lock feature for controlling the prototype, and the alert feature to provide a push notification in the form of a warning when the PIR sensor detects movement around the prototype. This paper describes the design and measures performance prototype and an android application that use for system security home using E-KTP and android application.

RESEARCH METHOD
The prototype system security utilized a microcontroller base on NodeMCU V3 ESP8266. As depicted in Figure 1, NodeMCU V3 ESP8266 is connected to the internet and firebase real-time database. data on firebase stores serial number/UID data from E-KTP, PIR sensor data, and data for relay controllers. RFID sensor connected to the microcontroller for reading the serial number/UID on E-KTP, PIR sensor for detecting motion, led as a marker that the prototype is connected to wifi, the buzzer is used when the relay is successfully used it will output sound output, and relays for solenoid controllers. Figure 2(a), gives a view of the prototype from the front, and Figure 2(b), gives a view of the prototype from behind. In the application there are three features. Lock feature to control the relay and deactivate the solenoid so that the door is closed, an open feature to control the relay and activate the solenoid so that the door opens, and alerts feature to activate the alarm system and provide information if there is movement in the room when the house owner is not around at home. Figure 3(c), in the application user, can add and change the serial number stored on the firebase manually by entering the serial number in the insert and edit activity. As shown in Figure 4, the alert feature sends push notifications based on PIR sensor data via the android application. As shown in Figure 5, firebase provides functionality like, database store data serial number of E-KTP that registered, data from PIR sensor, and data to control relay from android application. Figure 6(a) illustrates the measurement of the RFID output test for the prototype by collecting data in the form of reading the RFID reader on the E-KTP, when the registered E-KTP card was detected, the 1439 solenoid was open. Figure 6(b) in the android application, data collection is carried out in the form of quality of service (QoS) when the open feature is activated, the lock feature is activated, and QoS data collection is in the alert feature of the push notification sender. Tables 2 and 3 shows QoS parameters that uses for testing android application is throughput and delay.

RESULTS AND DISCUSSION
Data were collected by recording the performance of prototype and android applications. Parameters for prototype testing are the reading distance from the RFID reader, and the QoS parameters for testing android applications are throughput and delay. Table 4 measurement of RFID output using 3 E-KTPs from Andi Ainun Najib, Astrid Maydiana, and Khoir Mu'arif were used as registered E-KTPs that serial number of E-KTPs is stored on firebase. the performance of the prototype through reading the E-KTP with an RFID reader using a certain distance without being blocked by any material, and can send E-KTPs data to NodeMCU ESP8266 to what extent can be read by the system. Table 5 present the result of prototype performance for reading E-KTPs registered that RFID reader can reach a maximum distance of 4 cm without being obstructed by any objects, there is no difference in the detection distance of the three E-KTPs used.  Table 6 shows QoS performance from the open and lock features activated. Data were collected with 30 experiments to get the average value of QoS for throughput and delay. Figure 7

QoS performance of android application feature alert
QoS performance of android application feature alert in Table 7. Testing is done by providing movement around the device when the PIR sensor detects motion, the android application provides a notification to the android application. Figure 9, describes the number of successful packet arrivals observed when the alert feature is activated during a certain time interval in the alert feature, based on the calculation of the average throughput for the alert feature is 18066.6667 bps, with a perfect index based on standardization TIPHON. Figure 10, experiments by taking data 30 times showed the highest delay was at 75.8353 ms and the lowest was at 49.9182 ms. Based on the calculation results, the average delay is 67.2354995 ms. Delay is categorized as perfect because it is at vulnerable <150 ms, seeing the standardization TIPHON.

CONCLUSION
This paper describes the design and measures performance prototype and an android application that use for system security home using RFID sensor and PIR sensor. The prototype using to detect E-KTP as an RFID tag, and detecting motion, and send motion data to firebase, the application used for monitoring and controlling prototype by android. In this paper, we evaluated the performance prototype by reading distance from the RFID reader and QoS performance (i.e throughput and delay). The maximum distance RFID reader can detect E-KTP is 4 cm without being obstructed by any object, the prototype work perfectly detects E-KTP registered in firebase real-time database. The android application had been developed to ease the user in monitoring that is alert feature gives push notification base on PIR sensor and controlling the prototype by lock and open feature that control relay. For the android application, QoS performance for open and lock features, throughput is 18366.66667 bps with a perfect index based on the standard TIPHON, and delay is 65.26827336 ms. The delay value is in the range of 49.911 ms to 74.1709 ms so that the delay can be categorized as perfect because it is still vulnerable to <150 ms, based on standardization TIPHON. QoS performance for alert feature send push notification throughput is 18066.6667 bps, with a perfect index based on standardization TIPHON, and delay is 67.2354995 ms. Delay is categorized as perfect because it is at vulnerable <150 ms, seeing the standardization TIPHON. From the results obtained, the prototype and android application work well as a security system using E-KTP and IoT.