Using Long-Range Wireless Sensor Network to Track the Illegal Cutting Log

: Nowadays, the need for wireless sensing applications is increasing. Along with the increased illegal cutting of logs in the forest, however, it requires the integration application to tackle the illegal logging and forest preservation. The wireless sensor network is a suitable network architecture for remotely monitoring or tracking applications in the environment. This paper proposed an integrated system that can identify and track the position of a moving cutting log. An Arduino Uno, Raspberry Pi 3 B + , sound sensor, accelerometer sensor, LoRa GPS HAT Shield, and Outdoor LoRa Gateway OLG01 performed the hardware monitoring and tracking of the proposed system. The network of STAR topology conﬁguration between master and slaves is represented by the LoRa Network embedded with the sensors, as an architecture of the wireless sensor network. The system was examined the performance of the network and the tracking process. The result determined that the LoRa can detect and identify the occurrence of the illegal cutting of logs in real-time. Meanwhile, in terms of the tracking performance, a duration of 5–46 s was required to track the new position of the moving cutting log.


Introduction
The large-scale forest degradation affects the forest ecosystem and human life. There are several causes of forest degradation in Southeast Asia; these are legal and illegal logging, smallholder forest encroachments, overgrazing, natural water regimes changes, fires, shifting cultivation, expansion of farming land, fuelwood collection, and wood extraction for charcoal production [1]. Effects of deforestation are global warming, disruption of the global water cycle, decreased biodiversity, habitat loss and conflict, economic losses, and social consequences [2].
Illegal logging has become the most reported cases of forest crime in Indonesia [3]. There are a lot of technologies that have been used to tackle illegal logging [4]. The most appropriate technology that is used to tackle illegal logging is the Wireless Sensor Network (WSN) [5]. WSNs technology have been mainly used for identification, detection, monitoring and tracking [6]. WSNs are suitable for an outdoor area and can supervise a wide area of more than a thousand square meters. WSNs are one of the technologies that support a wireless-based data transmission system arranged hierarchically between sensor nodes [7]. The WSNs are also an ad-hoc network consisting of a sensor device, processing device, and radiofrequency device with limited energy capacity to sense the environment [8]. WSNs are widely known in a variety of applications in the real world, namely, military applications, environmental control, industrial management, health, and forest disaster management. Besides, WSNs can be used for infrastructure solutions for the Internet of Things (IoT) [9]. Since 2015, LoRa has been widely used for WSN implementation applications. LoRa has been designed as irrigation supervision and controlling for drip irrigation systems [19]. An automatically controlled watering system (controlled from home by a farmer) in agriculture, was used to measure soil using a moisture sensor that monitors humidity levels and temperature sensors to monitor soil's temperature [20,21]. Moreover, LoRa is also implemented in the Internet of Things (IoT) applications. One of them is an application-based smart parking system that provides information about empty parking slots to the drivers [22].
Other more comprehensive WSN applications include LoRa's implementation in the detection of forest fires to raise awareness of the need for forest preservation [23,24]. Geo-location tracking uses LoRa to track moving objects in the observation area [25]. In the health field, LoRa is used as a fall detection method to monitor old or vulnerable citizens who may be at risk of falling accidentally [26]. Besides, LoRa can help the doctor and the patient's family monitor and track a patient with a mental disorder [27]. Furthermore, LoRa can also be used to monitor blood pressure, glucose, and temperature in rural areas [28]; LoRa is also used as a communication platform in smart city applications [29].
The motivation of this research is to help the forest guard to monitor and supervise the environment of the trees in the forest remotely, so as to reduce the burden on the forest guard in conducting patrols in the forest. The research aimed to design and implement an IoT application Since 2015, LoRa has been widely used for WSN implementation applications. LoRa has been designed as irrigation supervision and controlling for drip irrigation systems [19]. An automatically controlled watering system (controlled from home by a farmer) in agriculture, was used to measure soil using a moisture sensor that monitors humidity levels and temperature sensors to monitor soil's temperature [20,21]. Moreover, LoRa is also implemented in the Internet of Things (IoT) applications. One of them is an application-based smart parking system that provides information about empty parking slots to the drivers [22].
Other more comprehensive WSN applications include LoRa's implementation in the detection of forest fires to raise awareness of the need for forest preservation [23,24]. Geo-location tracking uses LoRa to track moving objects in the observation area [25]. In the health field, LoRa is used as a fall detection method to monitor old or vulnerable citizens who may be at risk of falling accidentally [26]. Besides, LoRa can help the doctor and the patient's family monitor and track a patient with a mental disorder [27]. Furthermore, LoRa can also be used to monitor blood pressure, glucose, and temperature in rural areas [28]; LoRa is also used as a communication platform in smart city applications [29].
The motivation of this research is to help the forest guard to monitor and supervise the environment of the trees in the forest remotely, so as to reduce the burden on the forest guard in conducting patrols in the forest. The research aimed to design and implement an IoT application based on WSN technology that can detect illegal logging in forests. The system utilized several sensors and LoRa in each sensor node point. The proposed system also defined the network infrastructure that appropriates with LoRa architecture. The main contribution of this research is to tackle and reduce illegal logging in the forest. So, the proposed system can detain the degradation forest and help forest preservation. This proposed system is focused on detecting, tracking and identifying illegal logging.
This paper is presented in several sections. The next sections outline the research methodology and the material, design, and implementation used to compile the research. The third section describes the testing and the discussion of the results testing. At the end of the research, the conclusion is drawn and stated in the last section of this research as the fourth section.

Research Methodology
The research method used to compile this research was the development studies approach used in information systems. This research uses the systems development research process methodology [30]. The research began from theory building to propose system development based on observation or survey studies from a literature review. Then, the proposed system was designed and built before the developed system was tested using experiments in a lab or under real field conditions. The experiment was applied based on several testing scenarios and the results were discussed and analyzed to draw the conclusion.

State-of-the-Art Research in Illegal Logging
During this research, forest monitoring from illegal logging was conducted by taking imagery data through a satellite using various algorithms. The image from a bare forest can provide information that trees in the forest have been cut down [31,32]. Unfortunately, this system cannot provide tracking and reporting information on illegal logging in real-time. Besides, this system needs higher and more advanced computation.
Research using WSN has been conducted using integrated RFID, but the implementation of the tracking system is still separated [4]. A guardian forest system to detect the occurrence of illegal logging from the identification of chainsaw sound has been proposed. By utilizing the application program interface (API), the information was delivered through short message services (SMS) and web applications [33].
This system was then replaced by using the ZigBee, that can identify and track illegal logging [34]. A combination of a vibration sensor and sound sensor was proposed by [35]. Those sensors were integrated with Fog-computing and Lightweight Software Devices Networking Controllers (FLCs); the communication data used ZigBee. Detection through chainsaw acoustics has been applied to detect the illegal logging combined with ZigBee communication. The sound was classified into three band frequencies [36]. So, to recognize the occurrence of the illegal logging, most of the proposed systems were utilizing sound and vibration sensors. In this research, the proposed system used a gyro sensor to detect the slope of the tree trunk and sensor sound to detect the chainsaw sound.
However, ZigBee has a weakness in the coverage area communication and the infrastructure for wide area networks. The infrastructure of the network is affected by the network lifetime [17,37]. The comparison of LoRaWAN, Wifi and ZigBee can be seen in Table 1. As stated in Table 1, LoRaWAN has a communication coverage range of kilometers, while ZigBee only has a range of 10-100 m. ZigBee mostly uses short-range radio technologies and is not suitable for the illegal logging scenario that requires a low-power wide area network to fulfil the characteristics of an IoT application. The characteristics that are required from IoT applications are long-range, low data rate, low energy consumption, and cost-effectiveness [38]. Since the illegal logging application is embedded with IoT technology, LoRa is applied in the proposed system. Based on the required infrastructure of Illegal logging application, the LoRaWAN infrastructure network is supporting the hierarchical multi-hop network protocol. Network topology STAR of STAR on LoRaWAN makes it possible to add a sensor node without changing the topology.

Proposed System
This paper proposed an integrated system of IoT and WSN for illegal logging detection, monitoring, and event tracking in the forest. The design and architecture of the proposed system follow the open standard of LoRaWAN architecture that consists of a network server, gateways, and sensor nodes as end nodes [14]. The proposed system architecture is shown in Figure 2. The outline of the system is divided into local access network and remote access networks. Local access networks are equal with the connection between the sensor nodes and the gateways in the open standard LoRaWAN architecture. End nodes are defined as a measurement layer to supervise the real environment; the networks can consist of a hundred of end-devices connected in STAR of STAR topology. A dozen gateways are placed in the link-layer. The connections between a measurement layer and link layer are through LoRa Radio Frequency. Based on the required infrastructure of Illegal logging application, the LoRaWAN infrastructure network is supporting the hierarchical multi-hop network protocol. Network topology STAR of STAR on LoRaWAN makes it possible to add a sensor node without changing the topology.

Proposed System
This paper proposed an integrated system of IoT and WSN for illegal logging detection, monitoring, and event tracking in the forest. The design and architecture of the proposed system follow the open standard of LoRaWAN architecture that consists of a network server, gateways, and sensor nodes as end nodes [14]. The proposed system architecture is shown in Figure 2. The outline of the system is divided into local access network and remote access networks. Local access networks are equal with the connection between the sensor nodes and the gateways in the open standard LoRaWAN architecture. End nodes are defined as a measurement layer to supervise the real environment; the networks can consist of a hundred of end-devices connected in STAR of STAR topology. A dozen gateways are placed in the link-layer. The connections between a measurement layer and link layer are through LoRa Radio Frequency.   The remote access network is the structure of the networks on the middleware layer and application layer as a development of the network server in the open standard architecture of LoRaWAN. A LoRa network server and database cloud computer are placed as a middleware layer consisting of the database information and server to compile the data from end-devices. The application and the end-user are placed in the application layer. The application layer could be in the form of an IoT cloud with the web application or mobile application.

Local Access Network
As mentioned before, this network contained the measurement layer as end-devices and link layer as a gateway. The design of end-devices consists of several sensors that can detect the occurrence of the logging and the movement position of the cutting log. A gyro accelerometer sensor was used to detect the slope of the trunk trees, and a sound sensor was used as the chainsaw sound detector. Raspberry Pi 3 was used because LoRa GPS HAT Shield is compatible with Raspberry Pi 3. Besides, LoRa GPS HAT Shield is customized and can be programmed on-site or remotely. Arduino Uno was used to handling the sensors that were applied in the system. Outdoor LoRa Gateway OLG01 is placed as a LoRa Gateway to interface the local access and remote access.
The hardware requirements for the end-device consist of Arduino Uno, Raspberry Pi 3, LoRa GPS HAT Shield, gyro accelerometer sensor, sound sensor, and Outdoor LoRa Gateway OLG01. Meanwhile, the software specification requirement is an Arduino IDE and Raspbian Jessie Stretch 2019. The design of the sensor nodes can be seen in Figure 3. A power bank of 10,050 mAh was also applied as a battery to supply the energy at the sensor node.
Appl. Sci. 2020, 10, x FOR PEER REVIEW 5 of 17 The remote access network is the structure of the networks on the middleware layer and application layer as a development of the network server in the open standard architecture of LoRaWAN. A LoRa network server and database cloud computer are placed as a middleware layer consisting of the database information and server to compile the data from end-devices. The application and the end-user are placed in the application layer. The application layer could be in the form of an IoT cloud with the web application or mobile application.

Local Access Network
As mentioned before, this network contained the measurement layer as end-devices and link layer as a gateway. The design of end-devices consists of several sensors that can detect the occurrence of the logging and the movement position of the cutting log. A gyro accelerometer sensor was used to detect the slope of the trunk trees, and a sound sensor was used as the chainsaw sound detector. Raspberry Pi 3 was used because LoRa GPS HAT Shield is compatible with Raspberry Pi 3. Besides, LoRa GPS HAT Shield is customized and can be programmed on-site or remotely. Arduino Uno was used to handling the sensors that were applied in the system. Outdoor LoRa Gateway OLG01 is placed as a LoRa Gateway to interface the local access and remote access.
The hardware requirements for the end-device consist of Arduino Uno, Raspberry Pi 3, LoRa GPS HAT Shield, gyro accelerometer sensor, sound sensor, and Outdoor LoRa Gateway OLG01. Meanwhile, the software specification requirement is an Arduino IDE and Raspbian Jessie Stretch 2019. The design of the sensor nodes can be seen in Figure 3. A power bank of 10,050 mAh was also applied as a battery to supply the energy at the sensor node. The topology network that connected between sensor nodes and the gateway can be seen in Figure 4. The system is built with more than two similar end-devices connected to the outdoor LoRa Gateway OLG01 using STAR topology network in LoRa configuration. The STAR topology can be developed by adding new sensor nodes or combining another STAR topology network into an existing STAR topology, which becomes a STAR of STAR topology for multi-hop architecture [39].  The topology network that connected between sensor nodes and the gateway can be seen in Figure 4. The system is built with more than two similar end-devices connected to the outdoor LoRa Gateway OLG01 using STAR topology network in LoRa configuration. The STAR topology can be developed by adding new sensor nodes or combining another STAR topology network into an existing STAR topology, which becomes a STAR of STAR topology for multi-hop architecture [39].
Appl. Sci. 2020, 10, x FOR PEER REVIEW 5 of 17 The remote access network is the structure of the networks on the middleware layer and application layer as a development of the network server in the open standard architecture of LoRaWAN. A LoRa network server and database cloud computer are placed as a middleware layer consisting of the database information and server to compile the data from end-devices. The application and the end-user are placed in the application layer. The application layer could be in the form of an IoT cloud with the web application or mobile application.

Local Access Network
As mentioned before, this network contained the measurement layer as end-devices and link layer as a gateway. The design of end-devices consists of several sensors that can detect the occurrence of the logging and the movement position of the cutting log. A gyro accelerometer sensor was used to detect the slope of the trunk trees, and a sound sensor was used as the chainsaw sound detector. Raspberry Pi 3 was used because LoRa GPS HAT Shield is compatible with Raspberry Pi 3. Besides, LoRa GPS HAT Shield is customized and can be programmed on-site or remotely. Arduino Uno was used to handling the sensors that were applied in the system. Outdoor LoRa Gateway OLG01 is placed as a LoRa Gateway to interface the local access and remote access.
The hardware requirements for the end-device consist of Arduino Uno, Raspberry Pi 3, LoRa GPS HAT Shield, gyro accelerometer sensor, sound sensor, and Outdoor LoRa Gateway OLG01. Meanwhile, the software specification requirement is an Arduino IDE and Raspbian Jessie Stretch 2019. The design of the sensor nodes can be seen in Figure 3. A power bank of 10,050 mAh was also applied as a battery to supply the energy at the sensor node. The topology network that connected between sensor nodes and the gateway can be seen in Figure 4. The system is built with more than two similar end-devices connected to the outdoor LoRa Gateway OLG01 using STAR topology network in LoRa configuration. The STAR topology can be developed by adding new sensor nodes or combining another STAR topology network into an existing STAR topology, which becomes a STAR of STAR topology for multi-hop architecture [39].  Sensor nodes supervised and interacted with the real environment and forwarded the data to the network server through the gateways. The distance between sensor nodes and the gateway arranged by the received signal strength indicator (RSSI). LoRa Gateway forwards the uplink radio packets to the LoRa network server, and downlink to perform transmission requests coming from LoRa network server.

Remote Access Network
The remote access network is the network server that developed into a middleware layer and application layer. LoRa Gateway forwarded packets to LoRa network server through an IP network. The network server then processed the packet and forwarded it to the application layer. In the middleware layer, the LoRa network server processed and saved the data about RSSI, sound sensor, accelerometer sensor, latitude, longitude, and altitude into the database. The application layer then took the information from the database of the LoRa network server. Then, web applications in several conditions (such as the occurrence of illegal logging) sent the data, location and environment condition to the telegram channel that utilized application program interfaces (APIs). When the illegal cutting of logs occurred, the system informed the GPS position of the moving log to the forest police through the web application and telegram. The detailed architecture of the LoRa network is described in Figure 5.
Appl. Sci. 2020, 10, x FOR PEER REVIEW 6 of 17 Sensor nodes supervised and interacted with the real environment and forwarded the data to the network server through the gateways. The distance between sensor nodes and the gateway arranged by the received signal strength indicator (RSSI). LoRa Gateway forwards the uplink radio packets to the LoRa network server, and downlink to perform transmission requests coming from LoRa network server.

Remote Access Network
The remote access network is the network server that developed into a middleware layer and application layer. LoRa Gateway forwarded packets to LoRa network server through an IP network. The network server then processed the packet and forwarded it to the application layer. In the middleware layer, the LoRa network server processed and saved the data about RSSI, sound sensor, accelerometer sensor, latitude, longitude, and altitude into the database. The application layer then took the information from the database of the LoRa network server. Then, web applications in several conditions (such as the occurrence of illegal logging) sent the data, location and environment condition to the telegram channel that utilized application program interfaces (APIs). When the illegal cutting of logs occurred, the system informed the GPS position of the moving log to the forest police through the web application and telegram. The detailed architecture of the LoRa network is described in Figure 5. The data parameters that determine the networks involve the RSSI value, sound sensor parameter, and accelerometer sensor parameter. The RSSI value is usually used to measure the strength of the radio signal. So, it can be used as a distance threshold value between two LoRas. The sound parameter is used to detect the chainsaw sound, and the threshold is used to classify the chainsaw sound from other sounds. The accelerometer sensor parameter is determined by the log movement value as a classification threshold whether there is any difference in the slope of the trees caused by the chainsaw or not. The latitude and longitude parameter determined as a GPS parameter The data parameters that determine the networks involve the RSSI value, sound sensor parameter, and accelerometer sensor parameter. The RSSI value is usually used to measure the strength of the radio signal. So, it can be used as a distance threshold value between two LoRas. The sound parameter is used to detect the chainsaw sound, and the threshold is used to classify the chainsaw sound from other sounds. The accelerometer sensor parameter is determined by the log movement value as a classification threshold whether there is any difference in the slope of the trees caused by the chainsaw or not. The latitude and longitude parameter determined as a GPS parameter to indicate the location of the moving sensor nodes. The position of latitude and longitude value then translated into the map position in the google map application.

Flowchart of Proposed System
The occurrence of illegal cutting is detected by a sound sensor and an accelerometer sensor while the sensor nodes are in active. The data that were sensed by those sensors proceeded by the Arduino Uno. The Raspberry Pi and LoRa GPS/HAT proceed with the information of GPS data such as RSSI data, latitude, and longitude. The data that was collected from each sensor node was then sent to the Outdoor LoRa OLG01 Gateway if the illegal cutting has occurred. Illegal logging occurred when the value measured by the sound sensor exceeded a predetermined threshold. In addition, the changes of accelerometer data sensor must be in accordance with the changes in the determined threshold value, which indicates a change of tree position from the previous position. When both sensors are stated in a true logical condition, the illegal logging is indicated as happened.
All the aggregation data at the gateway will be sent to LoRa Network Server through the IP connection. The data were computed in the cloud server and displayed the result on a monitor or mobile device. The aggregation data sent are the data translated by LoRa in the form of RSSI data, sound sensor, vibration sensor, and GPS data like latitude and longitude. All the data recorded in the database will be displayed and informed to the user through telegrams and web applications. The system components can be seen in the flowchart shown in Figure 6.
Appl. Sci. 2020, 10, x FOR PEER REVIEW 7 of 17 to indicate the location of the moving sensor nodes. The position of latitude and longitude value then translated into the map position in the google map application.

Flowchart of Proposed System
The occurrence of illegal cutting is detected by a sound sensor and an accelerometer sensor while the sensor nodes are in active. The data that were sensed by those sensors proceeded by the Arduino Uno. The Raspberry Pi and LoRa GPS/HAT proceed with the information of GPS data such as RSSI data, latitude, and longitude. The data that was collected from each sensor node was then sent to the Outdoor LoRa OLG01 Gateway if the illegal cutting has occurred. Illegal logging occurred when the value measured by the sound sensor exceeded a predetermined threshold. In addition, the changes of accelerometer data sensor must be in accordance with the changes in the determined threshold value, which indicates a change of tree position from the previous position. When both sensors are stated in a true logical condition, the illegal logging is indicated as happened.
All the aggregation data at the gateway will be sent to LoRa Network Server through the IP connection. The data were computed in the cloud server and displayed the result on a monitor or mobile device. The aggregation data sent are the data translated by LoRa in the form of RSSI data, sound sensor, vibration sensor, and GPS data like latitude and longitude. All the data recorded in the database will be displayed and informed to the user through telegrams and web applications. The system components can be seen in the flowchart shown in Figure 6. In the term of the user, the flowchart of the application of illegal logging can be seen in Figure 7. When the telegram message was received by the user (e.g., forest ranger), the user opened the illegal In the term of the user, the flowchart of the application of illegal logging can be seen in Figure 7. When the telegram message was received by the user (e.g., forest ranger), the user opened the illegal logging application and saw the information about the activity. The tree position can be tracked by clicking on the google map application, and the user can chase the perpetrator of the illegal log theft.
Appl. Sci. 2020, 10, x FOR PEER REVIEW 8 of 17 logging application and saw the information about the activity. The tree position can be tracked by clicking on the google map application, and the user can chase the perpetrator of the illegal log theft.

Long-Range (LoRa) Configuration
LoRa is set at a frequency of 923 MHz, spreading factor (SF) = 12, payload (PL)= 8 bytes, coding rate (CR) = 4/5, and bandwidth (BW) = 125kHz. Header (H) = 0 and data rate optimization is disabled (DE) = 0. Time sequence of the network protocol can be seen in Figure 8. The communication between sensor nodes (Tx1 and Tx2) and the gateway delivered the real data environment. After conducting the data communication, Tx1 and Tx2 will be in the sleep duration until the next cycle. The gateway then aggregates the data from Tx1 and Tx2, and then transfers the data into the network server. The network server transfers data to the application server and forwards it to the user devices.

The Prototype of The Proposed System
The prototype of the proposed system can be seen in Figure 9. It consists of two sensor nodes Tx1 and Tx2 connected wireless with gateway OLG01. The prototype in local access is ready to test by several scenarios.  Figure 7. Flowchart of Illegal Logging Application for the User.

Long-Range (LoRa) Configuration
LoRa is set at a frequency of 923 MHz, spreading factor (SF) = 12, payload (PL)= 8 bytes, coding rate (CR) = 4/5, and bandwidth (BW) = 125kHz. Header (H) = 0 and data rate optimization is disabled (DE) = 0. Time sequence of the network protocol can be seen in Figure 8. The communication between sensor nodes (Tx1 and Tx2) and the gateway delivered the real data environment. After conducting the data communication, Tx1 and Tx2 will be in the sleep duration until the next cycle. The gateway then aggregates the data from Tx1 and Tx2, and then transfers the data into the network server. The network server transfers data to the application server and forwards it to the user devices.

Long-Range (LoRa) Configuration
LoRa is set at a frequency of 923 MHz, spreading factor (SF) = 12, payload (PL)= 8 bytes, coding rate (CR) = 4/5, and bandwidth (BW) = 125kHz. Header (H) = 0 and data rate optimization is disabled (DE) = 0. Time sequence of the network protocol can be seen in Figure 8. The communication between sensor nodes (Tx1 and Tx2) and the gateway delivered the real data environment. After conducting the data communication, Tx1 and Tx2 will be in the sleep duration until the next cycle. The gateway then aggregates the data from Tx1 and Tx2, and then transfers the data into the network server. The network server transfers data to the application server and forwards it to the user devices.

The Prototype of The Proposed System
The prototype of the proposed system can be seen in Figure 9. It consists of two sensor nodes Tx1 and Tx2 connected wireless with gateway OLG01. The prototype in local access is ready to test by several scenarios.  Figure 8. Time Sequences of Network Protocol.

The Prototype of The Proposed System
The prototype of the proposed system can be seen in Figure 9. It consists of two sensor nodes Tx1 and Tx2 connected wireless with gateway OLG01. The prototype in local access is ready to test by several scenarios. Appl. Sci. 2020, 10, x FOR PEER REVIEW 9 of 17

Result and Discussion
Several scenario tests were applied to examine the robustness and reliable data transmission in the proposed system. The scenarios have conducted a test to measure the LoRa performance in RSSI value and the GPS parameter in LoS (line of sight) and N-LoS (non-line of sight). The system also tested the tracking system's ability based on the moving tree position to indicate that illegal logging has occurred.

LoRa Performance based on Range-Distance RSSI
This scenario was examined in the LoS and N-LoS condition. This test aimed to measure the LoRa performance distance based on the strength of the RSSI signal devices between sensor node and gateway that can be detected by the system. As seen in Figure 10a,b,c, the LoS testing was examined in a large and open area of the soccer field near Telkom University. Meanwhile, the N-LoS testing was examined in a small forest inside the Telkom University area. The testing was also conducted in a forest in a suburb area near Batu Kuda Manglayang. The sensor nodes on the proposed system were moved to a range of 0.5 m from the gateway until the communication between the sensor node and the gateway could not be detected and lost connection. Sensor nodes and the gateway were located two meters from the ground.

Result and Discussion
Several scenario tests were applied to examine the robustness and reliable data transmission in the proposed system. The scenarios have conducted a test to measure the LoRa performance in RSSI value and the GPS parameter in LoS (line of sight) and N-LoS (non-line of sight). The system also tested the tracking system's ability based on the moving tree position to indicate that illegal logging has occurred.

LoRa Performance based on Range-Distance RSSI
This scenario was examined in the LoS and N-LoS condition. This test aimed to measure the LoRa performance distance based on the strength of the RSSI signal devices between sensor node and gateway that can be detected by the system. As seen in Figure 10a-c, the LoS testing was examined in a large and open area of the soccer field near Telkom University. Meanwhile, the N-LoS testing was examined in a small forest inside the Telkom University area. The testing was also conducted in a forest in a suburb area near Batu Kuda Manglayang. The sensor nodes on the proposed system were moved to a range of 0.5 m from the gateway until the communication between the sensor node and the gateway could not be detected and lost connection. Sensor nodes and the gateway were located two meters from the ground.
Appl. Sci. 2020, 10, x FOR PEER REVIEW 9 of 17 Figure 9. Prototype of the Proposed System.

Result and Discussion
Several scenario tests were applied to examine the robustness and reliable data transmission in the proposed system. The scenarios have conducted a test to measure the LoRa performance in RSSI value and the GPS parameter in LoS (line of sight) and N-LoS (non-line of sight). The system also tested the tracking system's ability based on the moving tree position to indicate that illegal logging has occurred.

LoRa Performance based on Range-Distance RSSI
This scenario was examined in the LoS and N-LoS condition. This test aimed to measure the LoRa performance distance based on the strength of the RSSI signal devices between sensor node and gateway that can be detected by the system. As seen in Figure 10a,b,c, the LoS testing was examined in a large and open area of the soccer field near Telkom University. Meanwhile, the N-LoS testing was examined in a small forest inside the Telkom University area. The testing was also conducted in a forest in a suburb area near Batu Kuda Manglayang. The sensor nodes on the proposed system were moved to a range of 0.5 m from the gateway until the communication between the sensor node and the gateway could not be detected and lost connection. Sensor nodes and the gateway were located two meters from the ground.  The testing results of LoRa RSSI signal performance in the LoS and N-Los area shown in Figure 11. In LoS area at the soccer field, the communication between gateway OLG01 and sensor nodes connected in the range of 0-900 m for Tx1 and 0-750 m for Tx2. In Non-LoS area at Telkom University, the RSSI signal between gateway OLG01 and sensor nodes Tx1 and Tx2 are connected in the range of 0-350 m. The signal cannot be read when the Tx1 or Tx2 are moved more than 350 m. Meanwhile, for the testing result in the suburb forest area Batu Kuda Manglayang, the communication distance between gateway OLG01 and sensor nodes Tx1 and Tx2 can only reach around 300 m. It is the density and thickness of the environment around the sensor nodes which affected the signal strength between the transmitter and receiver.
Appl. Sci. 2020, 10, x FOR PEER REVIEW 10 of 17 The testing results of LoRa RSSI signal performance in the LoS and N-Los area shown in Figure  11. In LoS area at the soccer field, the communication between gateway OLG01 and sensor nodes connected in the range of 0-900 m for Tx1 and 0-750 m for Tx2. In Non-LoS area at Telkom University, the RSSI signal between gateway OLG01 and sensor nodes Tx1 and Tx2 are connected in the range of 0-350 m. The signal cannot be read when the Tx1 or Tx2 are moved more than 350 m. Meanwhile, for the testing result in the suburb forest area Batu Kuda Manglayang, the communication distance between gateway OLG01 and sensor nodes Tx1 and Tx2 can only reach around 300 m. It is the density and thickness of the environment around the sensor nodes which affected the signal strength between the transmitter and receiver.
The testing also conducted a measure of the most appropriate position for placing the gateway and node sensors in the tree; the best position in which to place the sensor nodes and gateway is estimated at 1.8 to 2 m from the ground.

LoRa Tracking Performance
In the illegal logging application, the scenario that might occur if the thieves have cut down the tree, the location of the logs will be moved. So, in the second scenario, the system was tested to detect the new location of the logs for a tracking direction. This scenario was carried out by moving a sensor node TX1 and sensor node TX2 away from the gateway OLG01 with LoS and Non-LoS area as seen in Figure 10a,b, c.
The scenario test of LoS location can be seen in Figure 12. Line of sight tracking scenario at the proposed system revealed the movement of sensor node TX1 or TX2 for 135 0 as far as 901.13 m, 150 0 as far as 423.99 m, 100 0 as far as 408.64 m, and 60 0 as far as 370.89 m, away from the OLG01 gateway. This testing aimed to examine the distance range or how far the system can track the log's position based on the gateway's connection. The testing also conducted a measure of the most appropriate position for placing the gateway and node sensors in the tree; the best position in which to place the sensor nodes and gateway is estimated at 1.8 to 2 m from the ground.

LoRa Tracking Performance
In the illegal logging application, the scenario that might occur if the thieves have cut down the tree, the location of the logs will be moved. So, in the second scenario, the system was tested to detect the new location of the logs for a tracking direction. This scenario was carried out by moving a sensor node TX1 and sensor node TX2 away from the gateway OLG01 with LoS and Non-LoS area as seen in Figure 10a-c.
The scenario test of LoS location can be seen in Figure 12. Line of sight tracking scenario at the proposed system revealed the movement of sensor node TX1 or TX2 for 135 • as far as 901.13 m, 150 • as far as 423.99 m, 100 • as far as 408.64 m, and 60 • as far as 370.89 m, away from the OLG01 gateway. This testing aimed to examine the distance range or how far the system can track the log's position based on the gateway's connection. Appl. Sci. 2020, 10, x FOR PEER REVIEW 11 of 17 The moving of the GPS position result can be seen in Table 2. The position of the gateway OLG01 is placed in a location with latitude -6.96966 and longitude 107.632. The sensor nodes TX1 and TX2 are moved from the gateway position to the predetermined position, as seen in Figure 12. The new GPS value of the moving sensor node can be tracked by analyzing the latitude and longitude value position of the GPS. The result in Table 3 reports the new position of the sensor node that identified the sensor node movement. The system cannot detect the sensor node's new location when TX2 moved farther than 901.13 m from LoRa Gateway since it is far from the range of LoRa Gateway. Time processing to deliver the information is in real-time with a range of 2-5 s.  Figure 13 shows the tracking scenario of the N-LoS location at a small forest inside the Telkom University area. This scenario is also the same as the LoS scenario carried out by moving sensor node TX1 and sensor node TX2 away from the gateway OLG01 as seen in Figure 10b The testing results in the N-LoS area can be seen in Table 3. The gateway OLG01 is placed in a location with latitude -6.974782 and longitude 107.629622. All the moving can be defined except when TX2 moved to the location of 362.28 m from the LoRa Gateway since this is far from the range of LoRa Gateway. In Figure 13, no connection between the gateway node and the moving sensor is represented by a dashed line. The processing time to deliver the information is not in real-time with a range of 20-34 s. The moving of the GPS position result can be seen in Table 2. The position of the gateway OLG01 is placed in a location with Latitude −6.96966 and longitude 107.632. The sensor nodes TX1 and TX2 are moved from the gateway position to the predetermined position, as seen in Figure 12. The new GPS value of the moving sensor node can be tracked by analyzing the latitude and longitude value position of the GPS. The result in Table 3 reports the new position of the sensor node that identified the sensor node movement. The system cannot detect the sensor node's new location when TX2 moved farther than 901.13 m from LoRa Gateway since it is far from the range of LoRa Gateway. Time processing to deliver the information is in real-time with a range of 2-5 s.  Figure 13 shows the tracking scenario of the N-LoS location at a small forest inside the Telkom University area. This scenario is also the same as the LoS scenario carried out by moving sensor node TX1 and sensor node TX2 away from the gateway OLG01 as seen in Figure 10b     The testing results in the N-LoS area can be seen in Table 3. The gateway OLG01 is placed in a location with Latitude −6.974782 and longitude 107.629622. All the moving can be defined except when TX2 moved to the location of 362.28 m from the LoRa Gateway since this is far from the range of LoRa Gateway. In Figure 13, no connection between the gateway node and the moving sensor is represented by a dashed line. The processing time to deliver the information is not in real-time with a range of 20-34 s. Figure 14 shows the tracking scenario of the N-LoS location at the suburb forest area Batu Kuda Manglayang with different density and altitude of forest characteristics, as seen in Figure 10c.      The resulting testing can be seen in Table 4. The gateway OLG01 is placed in a location with Latitude −6.8921 and longitude 107.746. The sensor nodes TX1 and TX2 are moved from the gateway position to the predetermined position, as seen in Figure 14; all the movement can be tracked. The system cannot detect the new location of the sensor node when Tx1 moved to the location of 568.24 m, and Tx2 moved to 454.24 m away from the LoRa Gateway, since this is far from the range of the LoRa Gateway. In Figure 14, no connection between the gateway node and the moving sensor is represented by a dashed line. The processing time to deliver the information is not in real-time with a range of 5-46 s.

Illegal Logging Application
After testing the proposed system in the local access layer, the next step was to apply the testing scenario at the remote access layer. As seen in Figure 15, the display of the web application shows that the Tx1 has been moved to location -6.89022 latitude, 107.745549 longitude as far as 202 m from the gateway. This testing is carried out to measure the delivery of tracking information for the user in the form of monitoring devices and telegrams. a range of 5-46 s.

Illegal Logging Application
After testing the proposed system in the local access layer, the next step was to apply the testing scenario at the remote access layer. As seen in Figure 15, the display of the web application shows that the Tx1 has been moved to location -6.89022 latitude, 107.745549 longitude as far as 202 m from the gateway. This testing is carried out to measure the delivery of tracking information for the user in the form of monitoring devices and telegrams.
On the displayed web, the sensor node's position is shown as default, but the capture position in the display is the current position when the sensor node is moved away from the gateway. The map location of Illegal Logging Tracking (ILT) will display the new position of the moving log. The monitor display information has also revealed information about the value of sensor sound, sensor gyro, GPS parameter, and the time when the system tracks the new position.  On the displayed web, the sensor node's position is shown as default, but the capture position in the display is the current position when the sensor node is moved away from the gateway. The map location of Illegal Logging Tracking (ILT) will display the new position of the moving log. The monitor display information has also revealed information about the value of sensor sound, sensor gyro, GPS parameter, and the time when the system tracks the new position.
Meanwhile, the display on the telegram and tracking google map application can be seen in Figure 16. The map location of ILT also displayed the new position of the moving log. The telegram was received by the user at about 7 km from the location or after driving for about 51 min to the location. To access the My Tracks, click the new site and the tracking map displayed.
Meanwhile, the display on the telegram and tracking google map application can be seen in Figure 16. The map location of ILT also displayed the new position of the moving log. The telegram was received by the user at about 7 km from the location or after driving for about 51 min to the location. To access the My Tracks, click the new site and the tracking map displayed.

Energy Consumption
The energy consumption in one node for LoRa in the system, using the battery voltage of 3.3 volts, battery capacity of 10,050 mAh and the duty cycle based on LoRa characteristics (process, receiver, transmit) is 5970 ms with interrogations mode three times per day. The microcontroller consumed 16 mA, and the sensors consumed not more than 0.024mA. LoRa itself consumed 10.3 mA. It takes 25mA, -165dBm if the GPS was working in the tracking process. In sleep mode, GPS consumes about 55 μA. LoRa consumed less than 60 μA, and the sensors less than 1μA.
The estimation of battery life is solved by a power energy formula for electricity. The estimation of battery life for the LoRa performance without GPS takes 195.9 h. In contrast, the estimation of battery life for the system while using the GPS in the tracking process takes 140.95 h. The energy runs out quickly if the GPS is working in the tracking process.

Conclusions
This paper aimed to design a prototype and implementation of an IoT application that can detect the illegal cutting of trees and perform tracking using GPS in LoRA HAT. This proposed system is expected to increase the awareness and help the forest police to identify the occurrence of logging trees in the forest and to track the cutting of logs. Therefore, this system can help to reduce and detain the process of forest degradation.
Based on the testing result, the communication module LoRA was applied in the illegal logging application using the topology STAR of STAR. The LoRA communication performance between the node and the gateway measured the RSSI (dB) value and the distance (m). The resulting testing determined that sensor node TX1 connected with the gateway in the range of 0-900 m while sensor node Tx2 was in the range of 750 m in LoS area. At the small forest in the urban area as N-Los measurement, sensor nodes Tx1 and Tx2 can reach between 0 and 350 m. Meanwhile, in the N-LoS area at the suburb forest, sensor node Tx1 and Tx2 connected with the gateway in the maximum range of 0-300 m. The result of LoRa performance signal testing in N-LoS area is much shorter than

Energy Consumption
The energy consumption in one node for LoRa in the system, using the battery voltage of 3.3 volts, battery capacity of 10,050 mAh and the duty cycle based on LoRa characteristics (process, receiver, transmit) is 5970 ms with interrogations mode three times per day. The microcontroller consumed 16 mA, and the sensors consumed not more than 0.024 mA. LoRa itself consumed 10.3 mA. It takes 25 mA, −165 dBm if the GPS was working in the tracking process. In sleep mode, GPS consumes about 55 µA. LoRa consumed less than 60 µA, and the sensors less than 1 µA.
The estimation of battery life is solved by a power energy formula for electricity. The estimation of battery life for the LoRa performance without GPS takes 195.9 h. In contrast, the estimation of battery life for the system while using the GPS in the tracking process takes 140.95 h. The energy runs out quickly if the GPS is working in the tracking process.

Conclusions
This paper aimed to design a prototype and implementation of an IoT application that can detect the illegal cutting of trees and perform tracking using GPS in LoRA HAT. This proposed system is expected to increase the awareness and help the forest police to identify the occurrence of logging trees in the forest and to track the cutting of logs. Therefore, this system can help to reduce and detain the process of forest degradation.
Based on the testing result, the communication module LoRA was applied in the illegal logging application using the topology STAR of STAR. The LoRA communication performance between the node and the gateway measured the RSSI (dB) value and the distance (m). The resulting testing determined that sensor node TX1 connected with the gateway in the range of 0-900 m while sensor node Tx2 was in the range of 750 m in LoS area. At the small forest in the urban area as N-Los measurement, sensor nodes Tx1 and Tx2 can reach between 0 and 350 m. Meanwhile, in the N-LoS area at the suburb forest, sensor node Tx1 and Tx2 connected with the gateway in the maximum range of 0-300 m. The result of LoRa performance signal testing in N-LoS area is much shorter than LoS area. It is because there are many obstacles, such as the density of trees and high building. The placement of the gateway position must be located between 1.8 and 2.2 m, wherein that position, the signal can transmit further distance. If it is located too high or too low, the signal will meet more obstructions such as a bush, tree trunk, dense trees or the differences in Meters Above Sea Level (MASL).
Meanwhile, for tracking the moving log, the sensor node can be tracked by the system as long as the new location is in the range of gateway OLG01 location by identifying the new location of GPS. The delivery of information regarding the occurrence of illegal logging can be monitored and received by the users at a distance of more than 7 km. The processing time for captured information in LoS area adheres to real-time conditions, meanwhile, in N-LoS area it takes about 10-46 s to process the information. It is because the farther the transmitter and receiver are, the more power the device must consume and the weaker the signal is. The comparison between the previous study [40] stated that LoRa has a more extended range of communication than ZigBee. LoRa also has better energy consumption than ZigBee.
For future work, the system can be built in a larger prototype and embedded into a whole logging process stage. In this research, the energy consumed by LoRa/GPS HAT for Raspberry Pi, is still not optimal. However, LoRa/GPS HAT for Raspberry Pi still consumes less power and is better compared to ZigBee. So, the component can be replaced with other types of LoRa series that are compatible with Arduino. The system can be extended with the extra antenna to have a farther range; however, energy consumption must be considered because the extended antenna will consume extra energy. Besides, The GPS-free geolocation can be enhanced in the system for future work. The implementation of web applications will be advantageous for the user in order to track in an exemplary of Graphical User Interface (GUI). Considering the wide-area network in the illegal cutting region, the study of the efficient energy consumption at each node sensor needs further exploration.