<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.3 20210610//EN"
  "https://jats.nlm.nih.gov/publishing/1.3/JATS-journalpublishing1-3.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="1.3" article-type="research-article">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">IJAR</journal-id>
      <journal-title-group>
        <journal-title>Indonesian Journal of Advanced Research</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2968-0768</issn>
      <publisher>
        <publisher-name>Formosa Publisher</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.55927/ijar.v4i9.15395</article-id>
      <title-group>
        <article-title>Fuzzy Logic Based Automatic Chili Plant Watering and Pest Monitoring Using the Internet of Things (IoT)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes">
          <name>
            <surname>Najib</surname>
            <given-names>Nandy Rizaldy</given-names>
          </name>
          <aff>Politeknik Negeri Ujung Pandang</aff>
          <email>nandy@poliupg.ac.id</email>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Tahir</surname>
            <given-names>Muhammad</given-names>
          </name>
          <aff>Politeknik Negeri Ujung Pandang</aff>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Loloallo</surname>
            <given-names>Reginald</given-names>
          </name>
          <aff>Politeknik Negeri Ujung Pandang</aff>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Syahban</surname>
            <given-names>Aditya Rahmat</given-names>
          </name>
          <aff>Politeknik Negeri Ujung Pandang</aff>
        </contrib>
      </contrib-group>
      <pub-date pub-type="epub">
        <day>23</day>
        <month>09</month>
        <year>2025</year>
      </pub-date>
      <history>
        <date date-type="received">
          <day>07</day>
          <month>08</month>
          <year>2025</year>
        </date>
        <date date-type="rev-recd">
          <day>21</day>
          <month>08</month>
          <year>2025</year>
        </date>
        <date date-type="accepted">
          <day>23</day>
          <month>09</month>
          <year>2025</year>
        </date>
      </history>
      <volume>4</volume>
      <issue>9</issue>
      <fpage>2015</fpage>
      <lpage>2032</lpage>
      <abstract>
        <p>A challenge many chili farmers currently face is how to streamline watering from manual to automatic for more effective chili plants. This research aims to streamline water use by utilizing fuzzy logic and the Internet of Things (IoT). The method used begins with modeling in fuzzy logic and pest monitoring program code, connecting the system to an Android device. Test results show that the soil moisture sensor is capable of detecting soil moisture in various conditions, both dry and wet. The error tends to be slightly larger due to the increased sensor sensitivity with an average accuracy error below 5%. This sensor is very suitable as an automatic monitoring tool, especially for determining the need for automatic plant watering.</p>
      </abstract>
      <kwd-group>
        <kwd>Watering</kwd>
        <kwd>Chili Plants</kwd>
        <kwd>Fuzzy Logic</kwd>
        <kwd>IoT</kwd>
      </kwd-group>
      <permissions>
        <license>
          <ali:license_ref xmlns:ali="http://www.niso.org/schemas/ali/1.0/">http://creativecommons.org/licenses/by/4.0/</ali:license_ref>
          <license-p>This is an open-access article distributed under the terms of the Creative Commons Attribution 4.0 International License.</license-p>
        </license>
      </permissions>
    </article-meta>
  </front>
<body>
<sec id="introduction">
  <title>INTRODUCTION</title>
  <disp-quote>
    <p>Plants are one of the living things that need water to breed.
    Plants also need soil as a medium to grow. Fertile soil is one of
    the main factors for plants to grow well. Meanwhile, the water
    content and pH in the soil greatly affect its fertility. Lack of
    water in plants can lead to a decrease in cell turgor pressure,
    increased macromolecule concentration, damage to cell membranes, and
    decreased the potential for water chemical activity in plants
    (Mubiyanto, 1997). But currently, humans still find it difficult to
    water plants, because they have to be done manually and do not know
    how much water and fertilizer plants need. The effects of this lack
    of water can interfere with the overall metabolic process of plants,
    which ultimately negatively impacts the growth rate and development
    of plants (Harnowo, 1993). One of the horticultural plants that is
    often consumed by many Indonesian people and is found in many
    countries. Chili plants require certain environmental conditions,
    such as a temperature of 18°C–30°C, soil moisture of 60%–80%. In
    cultivation practices, watering chili peppers is generally done once
    a day, especially in the morning after sunrise but not too high
    (Situmorang, 2020). Then the research entitled &quot;Intelligent
    Irrigation System Using Fuzzy Logic Method in IoT-Based Tomato
    Plants&quot;. This research aims to design an IoT-based intelligent
    irrigation system using Fuzzy Logic for watering regulation in
    tomato plants. The system also monitors soil moisture and
    temperature in real time and adjusts automatic watering according to
    plant needs to optimize water usage. The design also uses fuzzy
    sugeno that combines soil temperature and moisture parameters and
    integrates IoT through Blynk's application. (Pogasang J et al,
    2024)</p>
    <p>The purpose of this research focuses on the application of modern
    technology to be an effective solution in increasing the efficiency
    and productivity of chili plants. Innovative smart farming system
    based on automatic watering integrated with IoT and fuzzy logic
    algorithms, monitoring plant conditions and pests using ESP32-Cam
    cameras. Several previous studies have also been observed, one of
    which is entitled &quot;Implementation of Iot-Based Chili Plant
    Watering Monitoring System&quot; which discusses the implementation
    of temperature and humidity sensors and microcontrollers connected
    to android applications to water plants. The result of this
    implementation is that the productivity of chili plants can be
    increased, the quality of crops is guaranteed, and efficiency in
    agricultural land management is achieved. (Nugraha and RR Hajar Puji
    Sejati, 2024).</p>
  </disp-quote>
</sec>
<sec id="literature-review">
  <title>LITERATURE REVIEW</title>
  <sec id="chili-plants">
    <title>Chili Plants</title>
    <disp-quote>
      <p>Chili plants are one of the horticultural crops with a fairly
      high selling value, but they require special attention in the
      cultivation process. The growth of chili plants is greatly
      influenced by the availability of water, both lack and excess
      water can interfere with the fertilization process and increase
      susceptibility to pest attacks (Imtiyaz et al., 2017). To support
      optimal growth, chili needs a growing medium with an appropriate
      level of humidity. Improper watering, both in terms of quantity
      and time, can negatively impact plant productivity. Therefore, the
      timeliness of watering is an important factor that</p>
      <p>needs to be considered. Even if done regularly, watering that
      ignores the elements of time, temperature, and humidity can reduce
      crop yields.</p>
    </disp-quote>
    <graphic mimetype="image" mime-subtype="jpeg" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image3.jpeg" />
    <disp-quote>
      <p>Figure 1. Chili Plants</p>
      <p>The classification of cayenne pepper according to Anggraini
      (2020) is as follows:</p>
      <p><italic>Kingdom : Plantae</italic></p>
      <p><italic>Divisi :Spermatophyta</italic></p>
      <p><italic>Sub Divis : Angiospermae</italic></p>
      <p><italic>Class : Dicotyledonae</italic></p>
      <p><italic>Ordo : Solanes</italic></p>
      <p><italic>Famili : Solanaceae Sub Famili : Solanaceae Genus :
      Capsicum Capsicum fruetescencs L.</italic></p>
    </disp-quote>
  </sec>
  <sec id="watering-chili">
    <title>Watering Chili</title>
    <disp-quote>
      <p>The ideal watering time for chili plants is in the morning at
      around 07.00 and in the afternoon at 17.00 WIB (Mootalu et al.,
      2022). Based on the age of the plant, water needs vary, namely at
      the age of one month around 0.111 liters per day<bold>,</bold> at
      the age of two months 1,148 liters per day, at the age of three
      months 1,223 liters per day<bold>,</bold> and at the age of four
      months it remains around 1,323 liters per day<bold>.</bold> In
      addition, chili peppers are also susceptible to pests such as
      caterpillars and aphids, which can cause serious damage to
      crops</p>
    </disp-quote>
  </sec>
  <sec id="chili-pests">
    <title>Chili Pests</title>
    <disp-quote>
      <p>Chili plants require special attention in cultivation, this
      special attention is paid so that chili produces abundant and
      quality fruits, this plant is a plant that is often targeted by
      various pests that can damage growth and reduce crop yields</p>
    </disp-quote>
  </sec>
  <sec id="internet-of-things">
    <title>Internet of Things</title>
    <disp-quote>
      <p>The Internet of Things (IoT) is a technology that allows
      communication between machines through internet connections often
      referred to as M2M (Machine-to-Machine) with humans playing the
      role of users as well as managers. IoT consists of three main
      elements, namely physical devices equipped with IT modules,
      internet connectivity, and cloud-based data centers to store
      information. This technology continues to enable continuous
      connections between devices, machines, tools, and other physical
      objects through network sensors and actuators. In its operation,
      IoT devices connected</p>
      <p>to the internet collect data stored as Big Data to be processed
      and analyzed as needed. With this capability, the device can
      monitor its own performance and independently take actions or
      decisions based on the information obtained. Collaboration between
      integrated machines creates an intelligent, efficient, and
      automated ecosystem, so that it can optimally improve various
      aspects of human life.</p>
      <p>The initial idea of IoT was first introduced by Kevin Ashton in
      1999 in one of his presentations. Since then, many major companies
      in the tech world, such as Intel, Microsoft, Oracle, and others,
      have begun to pay great attention to IoT development.
      Technologists predict that the influence of IoT will be the next
      big revolution in the world of information technology. This
      optimism arises because IoT holds various extraordinary potentials
      that can continue to be explored and utilized to create innovative
      solutions in various areas of life. There are several stages of
      how IoT works, namely sensors, data processing, connectivity, and
      actions, as seen in figure 2.10 (Sawitri, 2023).</p>
    </disp-quote>
    <graphic mimetype="image" mime-subtype="jpeg" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image4.jpeg" />
    <disp-quote>
      <p>Figure 2. How the Internet of Things Works</p>
      <p>In the way IoT works, the four stages are interrelated and
      affect each other. Sensors are used to collect data, the data is
      then processed and sent through the IoT network, and finally the
      device can respond automatically without the need for human
      intervention (Sawitri, 2023).</p>
    </disp-quote>
  </sec>
  <sec id="fuzzy-logic">
    <title>Fuzzy Logic</title>
    <disp-quote>
      <p>In June 1965, the concept of fuzzy logic was first introduced
      by Professor Lotfi A. Zadeh of the University of California
      (Kaswidjanti, Aribowo, &amp; Wicaksono, 2014). The basis of fuzzy
      logic is fuzzy set theory. According to Edy Victor Haryanto
      (2015), this theory states that the degree of membership of an
      element in a set is not only limited to the values of 0 and 1 (not
      members or members), but can be between these ranges. Thus, there
      is a logical &quot;gray area&quot; between the values of 0 and
      1.</p>
      <graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image5.png" />
      <p>Figure 3. Fuzzy Logic Modeling</p>
      <p>Fuzzy logic is one of the algorithms that is part of the study
      of artificial intelligence. This algorithm is applied in various
      fields, such as medicine to detect diseases, economics, and so on.
      In general, fuzzy logic is used to solve problems that contain
      uncertainty. Some of the reasoning methods commonly used in the
      development of fuzzy systems include the Tsukamoto, Mamdani, and
      Sugeno methods (Jayanti &amp; Hartati, 2012).</p>
    </disp-quote>
  </sec>
  <sec id="esp32-cam">
    <title>ESP32-CAM</title>
    <disp-quote>
      <p>The ESP32-CAM is an ESP32-based microcontroller module equipped
      with an integrated camera, making it a very popular choice for
      applications that require the ability to shoot or video in
      Internet of Things (IoT) projects. Especially in this Final
      Project, ESP32-cam is used as a monitoring of the condition of
      chili plants and the surrounding environment.</p>
    </disp-quote>
    <graphic mimetype="image" mime-subtype="jpeg" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image6.jpeg" />
    <disp-quote>
      <p>Figure 4. ESP-32 CAM</p>
    </disp-quote>
  </sec>
  <sec id="ds18b20-sensor">
    <title>DS18b20 Sensor</title>
    <disp-quote>
      <p>DS18B20 sensors are analog sensors designed to measure
      temperature with high accuracy and simple data output via the
      1-Wire analog communication protocol. These sensors are widely
      used in various applications such as temperature control,
      refrigeration systems, environmental monitoring, and IoT
      projects.</p>
    </disp-quote>
    <graphic mimetype="image" mime-subtype="jpeg" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image7.jpeg" />
    <disp-quote>
      <p>Figure 5. DS18b20 Temperature Sensor Module</p>
    </disp-quote>
  </sec>
  <sec id="soil-moisture-sensor">
    <title>Soil Moisture Sensor</title>
    <disp-quote>
      <p>Soil Moisture <italic>Sensor</italic> is an electronic device
      used to detect soil moisture levels. This tool works by measuring
      the electrical conductivity of the soil, where the level of soil
      moisture affects the ability of the soil to conduct electricity.
      The</p>
      <p>more water content in the soil, the lower the electrical
      resistance, so the output value of the sensor becomes higher.
      <italic>Soil Moisture</italic> consists of components with two
      metal rods that are embedded into the soil. These two metal rods
      are used for probes and electrodes to measure the electrical
      resistance of the ground. This soil moisture sensor has the
      following specifications:</p>
    </disp-quote>
    <list list-type="order">
      <list-item>
        <p>Theinput voltage is 3.3V or 5V.</p>
      </list-item>
      <list-item>
        <p>Theoutput voltage is 0 – 4.2V.</p>
      </list-item>
      <list-item>
        <p>The current is 35 mA.</p>
      </list-item>
    </list>
    <disp-quote>
      <p><inline-graphic mimetype="image" mime-subtype="jpeg" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image8.jpeg" />The
      value range of ADC is 1024 bits ranging from 0 – 1023 bits.</p>
      <p>Figure 6. Soil Moisture Sensor Module</p>
    </disp-quote>
  </sec>
  <sec id="flow-meter-yf-s401-sensor">
    <title>Flow Meter yf-s401 Sensor</title>
    <disp-quote>
      <p>The YF-S401 flow meter sensor is a Hall Effect-based flow
      sensor module commonly used to measure the rate of liquids,
      specifically water, in closed pipes. The specifications of this
      sensor are as follows:</p>
      <p>Operating Voltage : 3.3 V – 5 V Working Current : ≤ 15 mA
      Measurement range : 1 – 30 L/min Accuracy : ± 10</p>
      <p>Signal Output: PWM Diameter Pipa : ½ inch (G1/2)</p>
      <p>Maximum pressure : &lt; 1.75 MPa</p>
    </disp-quote>
    <graphic mimetype="image" mime-subtype="jpeg" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image9.jpeg" />
    <disp-quote>
      <p>Figure 7. YF-S401 Flow Meter Sensor Module</p>
    </disp-quote>
  </sec>
  <sec id="codular">
    <title>Codular</title>
    <disp-quote>
      <p>Codular is a drag-and-drop based Android app development
      platform that allows users, even without a programming background,
      to create Android apps easily and quickly. Using the visual
      interface, users can add elements such as buttons, images, and
      text inputs and structure the app's logic using visual code
      blocks, which resemble puzzle pieces that can be combined to form
      a program flow. Kodular provides a variety of components, ranging
      from user interfaces, sensors, to internet-based services, and
      supports integration with</p>
      <p>third-party services such as Firebase, Google Maps, and
      advertising. The platform allows developers to test apps directly
      on Android devices through live testing features, as well as
      offering app monetization capabilities through ads and in-app
      purchases.</p>
      <graphic mimetype="image" mime-subtype="jpeg" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image10.jpeg" />
      <p>Figure 8. Apps Kodular</p>
    </disp-quote>
  </sec>
  <sec id="mqtt">
    <title>MQTT</title>
    <disp-quote>
      <p>MQTT (Message Queuing Telemetry Transport) is a lightweight
      communication protocol based on a publish-subscribe architecture
      designed specifically for machine-to-machine (M2M) communication
      and Internet of Things (IoT) applications. In its mechanism, MQTT
      sends data in the form of a message to a topic, which is a kind of
      category or virtual address used to group and convey data. The
      publisher sends a message to a specific topic, and the broker
      forwards that message to all subscribers who have subscribed to
      the same</p>
      <p>topic. In this way, communication between devices becomes more
      flexible<bold>,</bold> efficient<bold>,</bold> and not directly
      dependent on each other. For example, a temperature</p>
      <p>sensor can send data to a sensor/temperature topic, and the
      monitoring device only needs to subscribe to that topic to receive
      real-time temperature data (Pratama et al, 2023).</p>
    </disp-quote>
    <graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image11.png" />
    <disp-quote>
      <p>Figure 9. MQTT Communication Architecture</p>
      <p>MQTT is designed to operate efficiently on low-bandwidth,
      high-latency networks<bold>,</bold> making it ideal for use in IoT
      devices with limited power and connectivity. This protocol also
      supports the reliability level of message delivery through the
      Quality of Service (QoS) feature<bold>,</bold> as well as provides
      a Last Will and Testament (LWT) mechanism to handle sudden
      connection disconnections.</p>
    </disp-quote>
    <graphic mimetype="image" mime-subtype="jpeg" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image12.jpeg" />
    <p>Figure 10. MQTT</p>
  </sec>
  <sec id="error-calculation">
    <title>Error Calculation</title>
    <disp-quote>
      <p>The measurement calculation in this study was carried out using
      the relative error method. This method is used to find out how
      close to the actual value obtained from a standard measuring
      device. In other words, relative error indicates the level of
      accuracy of the sensor in reading a physical quantity when</p>
      <p>compared to a reference measuring instrument. In the process of
      measuring a physical quantity, be it temperature, humidity, water
      discharge, or other parameters, it is important to evaluate how
      accurate the sensor or measurement instrument used is. One of the
      commonly used methods is the calculation of relative error.</p>
      <p>Relative error provides information about the extent to which
      the sensor reading results are close to the actual value obtained
      from a reference or standard measuring instrument. Thus, this
      method not only shows the difference in values, but also
      emphasizes the proportion of errors to the reference values. This
      is important because the same error can be considered small at
      large measurement values, but significant at small measurement
      values. (Bakshi &amp; Bakshi, 2009).</p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mi>Error</mi>
  <mo>=</mo>
  <mfrac>
    <mrow>
      <mi>Sensor</mi>
      <mo>&#xA0;</mo>
      <mi>Value</mi>
      <mo>-</mo>
      <mi>Measuring</mi>
      <mo>&#xA0;</mo>
      <mi>Instrument</mi>
      <mo>&#xA0;</mo>
      <mi>Value</mi>
    </mrow>
    <mrow>
      <mi>Measuring</mi>
      <mo>&#xA0;</mo>
      <mi>Instrument</mi>
      <mo>&#xA0;</mo>
      <mi>Value</mi>
    </mrow>
  </mfrac>
  <mo>×</mo>
  <mn>100</mn>
  <mo>%</mo>
</math>
      <p>(1)</p>
      <p>Then to find the average value of the error from the entire
      data to be tested is as follows:</p>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mi>Average</mi>
    <mo>&#xA0;</mo>
    <mi>error</mi>
    <mo>=</mo>
    <mfrac>
      <mrow>
        <mi>Total</mi>
        <mo>&#xA0;</mo>
        <mi>number</mi>
        <mo>&#xA0;</mo>
        <mi>of</mi>
        <mo>&#xA0;</mo>
        <mi>error</mi>
        <mo>&#xA0;</mo>
        <mi>data</mi>
      </mrow>
      <mrow>
        <mi>lots</mi>
        <mo>&#xA0;</mo>
        <mi>of</mi>
        <mo>&#xA0;</mo>
        <mi>error</mi>
        <mo>&#xA0;</mo>
        <mi>data</mi>
      </mrow>
    </mfrac>
  </mrow>
</math>
      <p>(2)</p>
    </disp-quote>
  </sec>
</sec>
<sec id="methodology">
  <title>METHODOLOGY</title>
  <disp-quote>
    <p>In this study, the algorithm used in the design of this final
    project is the fuzzy mamdani method. This system consists of 2
    inputs that act as linguistic variables, namely soil temperature and
    soil moisture, and 1 output , namely the amount of watering
    discharge. Here is a more detailed explanation of the system:</p>
  </disp-quote>
  <sec id="membership-function-planning">
    <title>Membership Function Planning</title>
    <disp-quote>
      <p>In the fuzzification system focused on finding the membership
      function, it has two inputs , namely temperature and humidity.
      Each of these inputs comes from the input of each sensor, such as
      the DS18b20 sensor to measure soil temperature and the soil
      moisture sensor to measure soil moisture. On the temperature
      variable, marks (D) are given for cold, (N) for normal, (P) for
      heat and (SP) for very hot. The temperature input variables are
      shown in the table as follows:</p>
    </disp-quote>
    <disp-quote>
      <p>Table 1. Temperature Input</p>
    </disp-quote>
<table-wrap id="T1">
    <label>Table 1. Temperature Input</label>
    <alternatives>
        <table frame="hsides" rules="groups">
            <thead>
                <tr>
                    <td align="center" valign="bottom"><italic>No</italic></td>
                    <td align="center" valign="bottom"><italic>Temperature Input Variables</italic></td>
                    <td align="center" valign="bottom"><italic>The Universe of Talk</italic></td>
                    <td align="center" valign="bottom"><italic>Domain</italic></td>
                </tr>
            </thead>
            
            <tbody>
                <tr>
                    <td align="center">1.</td>
                    <td align="left">Cold (D)</td>
                    <td align="center">[0, 22]</td>
                    <td align="center">[0 15 18 22]</td>
                </tr>
                <tr>
                    <td align="center">2.</td>
                    <td align="left">Normal (N)</td>
                    <td align="center">[20, 29]</td>
                    <td align="center">[20 25 25 29]</td>
                </tr>
                <tr>
                    <td align="center">3.</td>
                    <td align="left">Heat (P)</td>
                    <td align="center">[27, 35]</td>
                    <td align="center">[27 32 32 35]</td>
                </tr>
                <tr>
                    <td align="center">4.</td>
                    <td align="left">Very Hot (SP)</td>
                    <td align="center">[33, 50]</td>
                    <td align="center">[33 45 50 50]</td>
                </tr>
            </tbody>
        </table>
    </alternatives>
</table-wrap>
    <disp-quote>
      <p>The following is an equation from the manual function looking
      for the parameters of <italic>fuzzyification:</italic></p>
    </disp-quote>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <!-- µNormal[x] pertama -->
  <mrow>
    <mi>μNormal</mi><mo>[</mo><mi>x</mi><mo>]</mo>
    <mo>=</mo>
    <mrow>
      <mo>{</mo>
      <mtable>
        <mtr>
          <mtd><mn>1</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&#x2264;</mo><mn>15</mn></mtd>
        </mtr>
        <mtr>
          <mtd>
            <mfrac>
              <mrow><mn>18</mn><mo>-</mo><mi>x</mi></mrow>
              <mrow><mn>18</mn><mo>-</mo><mn>15</mn></mrow>
            </mfrac>
          </mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mn>15</mn><mo>&lt;</mo><mi>x</mi><mo>&lt;</mo><mn>18</mn></mtd>
        </mtr>
        <mtr>
          <mtd><mn>0</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&gt;</mo><mn>22</mn></mtd>
        </mtr>
      </mtable>
    </mrow>
  </mrow>

  <!-- µNormal[x] kedua -->
  <mrow>
    <mi>μNormal</mi><mo>[</mo><mi>x</mi><mo>]</mo>
    <mo>=</mo>
    <mrow>
      <mo>{</mo>
      <mtable>
        <mtr>
          <mtd><mn>0</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&#x2264;</mo><mn>20</mn><mo>or</mo><mi>x</mi><mo>&#x2265;</mo><mn>25</mn></mtd>
        </mtr>
        <mtr>
          <mtd>
            <mfrac>
              <mrow><mn>29</mn><mo>-</mo><mi>x</mi></mrow>
              <mrow><mn>29</mn><mo>-</mo><mn>25</mn></mrow>
            </mfrac>
          </mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mn>25</mn><mo>&lt;</mo><mi>x</mi><mo>&lt;</mo><mn>29</mn></mtd>
        </mtr>
      </mtable>
    </mrow>
  </mrow>

  <!-- µHeat[x] -->
  <mrow>
    <mi>μHeat</mi><mo>[</mo><mi>x</mi><mo>]</mo>
    <mo>=</mo>
    <mrow>
      <mo>{</mo>
      <mtable>
        <mtr>
          <mtd><mn>0</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&#x2264;</mo><mn>27</mn><mo>or</mo><mi>x</mi><mo>&#x2265;</mo><mn>32</mn></mtd>
        </mtr>
        <mtr>
          <mtd>
            <mfrac>
              <mrow><mn>35</mn><mo>-</mo><mi>x</mi></mrow>
              <mrow><mn>35</mn><mo>-</mo><mn>32</mn></mrow>
            </mfrac>
          </mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mn>32</mn><mo>&lt;</mo><mi>x</mi><mo>&lt;</mo><mn>35</mn></mtd>
        </mtr>
      </mtable>
    </mrow>
  </mrow>

  <!-- µVeryHot[x] -->
  <mrow>
    <mi>μVeryHot</mi><mo>[</mo><mi>x</mi><mo>]</mo>
    <mo>=</mo>
    <mrow>
      <mo>{</mo>
      <mtable>
        <mtr>
          <mtd><mn>0</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&#x2264;</mo><mn>33</mn></mtd>
        </mtr>
        <mtr>
          <mtd>
            <mfrac>
              <mrow><mi>x</mi><mo>-</mo><mn>45</mn></mrow>
              <mrow><mn>50</mn><mo>-</mo><mn>45</mn></mrow>
            </mfrac>
          </mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mn>45</mn><mo>&lt;</mo><mi>x</mi><mo>&lt;</mo><mn>50</mn></mtd>
        </mtr>
        <mtr>
          <mtd><mn>1</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&gt;</mo><mn>50</mn></mtd>
        </mtr>
      </mtable>
    </mrow>
  </mrow>
</math>
    <disp-quote>
      <p>From the table above, it can be concluded that for cold
      temperatures it is in the value range of 15-22 <bold>°C</bold>,
      for normal temperatures it is at 22-28 <bold>°C</bold>, for hot
      temperatures it is in the value range of 28-35 <bold>°C</bold> and
      for very hot values it is above ≥35 <bold>°C</bold>.</p>
      <p>The soil moisture variables were taken based on the soil
      moisture sensor parameters by initiating the variables very dry
      (SK), dry (K), Normal (N), Wet (B). The following is a table of
      soil moisture <italic>input</italic> variables:</p>
    </disp-quote>
    <disp-quote>
      <p>Table 2. Moisture Input</p>
    </disp-quote>
<table-wrap id="T2">
    <label>Table 2. Moisture Input</label>
    <alternatives>
        <table frame="hsides" rules="groups">
            <thead>
                <tr>
                    <td align="center" valign="bottom"><italic>No</italic></td>
                    <td align="center" valign="bottom"><italic>Variable Input Humidity</italic></td>
                    <td align="center" valign="bottom"><italic>The Universe of Talk</italic></td>
                    <td align="center" valign="bottom"><italic>Domamin</italic></td>
                </tr>
            </thead>
            
            <tbody>
                <tr>
                    <td align="center">1.</td>
                    <td align="left">Very Dry (SK)</td>
                    <td align="center">[0, 30]</td>
                    <td align="center">[0 10 15 30]</td>
                </tr>
                <tr>
                    <td align="center">2.</td>
                    <td align="left">Dry (K)</td>
                    <td align="center">[25, 60]</td>
                    <td align="center">[25 45 45 60]</td>
                </tr>
                <tr>
                    <td align="center">3.</td>
                    <td align="left">Normal (N)</td>
                    <td align="center">[50, 80]</td>
                    <td align="center">[50 70 70 80]</td>
                </tr>
                <tr>
                    <td align="center">4.</td>
                    <td align="left">Wet (P)</td>
                    <td align="center">[70, 100]</td>
                    <td align="center">[70 80 100 100]</td>
                </tr>
            </tbody>
            </table>
    </alternatives>
</table-wrap>
    <disp-quote>
      <p>The following is an equation from the manual function looking
      for the parameters of fuzzyification :</p>
    </disp-quote>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <!-- µVeryDry[x] -->
  <mrow>
    <mi>μVeryDry</mi><mo>[</mo><mi>x</mi><mo>]</mo>
    <mo>=</mo>
    <mrow>
      <mo>{</mo>
      <mtable>
        <mtr>
          <mtd><mn>1</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&#x2264;</mo><mn>0</mn></mtd>
        </mtr>
        <mtr>
          <mtd>
            <mfrac>
              <mrow><mn>15</mn><mo>-</mo><mi>x</mi></mrow>
              <mrow><mn>15</mn><mo>-</mo><mn>10</mn></mrow>
            </mfrac>
          </mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mn>10</mn><mo>&lt;</mo><mi>x</mi><mo>&lt;</mo><mn>15</mn></mtd>
        </mtr>
        <mtr>
          <mtd><mn>0</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&gt;</mo><mn>30</mn></mtd>
        </mtr>
      </mtable>
    </mrow>
  </mrow>

  <!-- µKering[x] -->
  <mrow>
    <mi>μKering</mi><mo>[</mo><mi>x</mi><mo>]</mo>
    <mo>=</mo>
    <mrow>
      <mo>{</mo>
      <mtable>
        <mtr>
          <mtd><mn>0</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&#x2264;</mo><mn>25</mn><mo>or</mo><mi>x</mi><mo>&#x2265;</mo><mn>45</mn></mtd>
        </mtr>
        <mtr>
          <mtd>
            <mfrac>
              <mrow><mn>60</mn><mo>-</mo><mi>x</mi></mrow>
              <mrow><mn>60</mn><mo>-</mo><mn>45</mn></mrow>
            </mfrac>
          </mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mn>45</mn><mo>&lt;</mo><mi>x</mi><mo>&lt;</mo><mn>60</mn></mtd>
        </mtr>
      </mtable>
    </mrow>
  </mrow>

  <!-- µNormal[x] -->
  <mrow>
    <mi>μNormal</mi><mo>[</mo><mi>x</mi><mo>]</mo>
    <mo>=</mo>
    <mrow>
      <mo>{</mo>
      <mtable>
        <mtr>
          <mtd><mn>0</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&#x2264;</mo><mn>50</mn><mo>or</mo><mi>x</mi><mo>&#x2265;</mo><mn>70</mn></mtd>
        </mtr>
        <mtr>
          <mtd>
            <mfrac>
              <mrow><mn>80</mn><mo>-</mo><mi>x</mi></mrow>
              <mrow><mn>80</mn><mo>-</mo><mn>70</mn></mrow>
            </mfrac>
          </mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mn>70</mn><mo>&lt;</mo><mi>x</mi><mo>&lt;</mo><mn>80</mn></mtd>
        </mtr>
      </mtable>
    </mrow>
  </mrow>

  <!-- µWet[x] -->
  <mrow>
    <mi>μWet</mi><mo>[</mo><mi>x</mi><mo>]</mo>
    <mo>=</mo>
    <mrow>
      <mo>{</mo>
      <mtable>
        <mtr>
          <mtd><mn>0</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&#x2264;</mo><mn>70</mn><mo>or</mo><mi>x</mi><mo>&#x2265;</mo><mn>80</mn></mtd>
        </mtr>
        <mtr>
          <mtd>
            <mfrac>
              <mrow><mi>x</mi><mo>-</mo><mn>80</mn></mrow>
              <mrow><mn>100</mn><mo>-</mo><mn>80</mn></mrow>
            </mfrac>
          </mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mn>80</mn><mo>&lt;</mo><mi>x</mi><mo>&lt;</mo><mn>100</mn></mtd>
        </mtr>
        <mtr>
          <mtd><mn>1</mn></mtd>
          <mtd><mtext>for</mtext><mo>&#xA0;</mo><mi>x</mi><mo>&#x2265;</mo><mn>100</mn></mtd>
        </mtr>
      </mtable>
    </mrow>
  </mrow>
</math>
    <sec id="fuzzy-output-planning">
      <title>Fuzzy Output Planning</title>
      <disp-quote>
        <p>This system has an output of the amount of watering
        discharge(s) on the soil according to the desired humidity and
        temperature. Variable output was obtained from literature
        studies related to watering chili plants, the watering variables
        were obtained namely No Watering (T), Little Watering (SS), Half
        Watering (SS2) and Lots of Watering (BS).</p>
      </disp-quote>
      <disp-quote>
        <p>Table 3. Watering Output</p>
      </disp-quote>
<table-wrap id="T3">
    <label>Table 3. Watering Output</label>
    <alternatives>
        <table frame="hsides" rules="groups">
            <thead>
                <tr>
                    <td align="center" valign="bottom"><italic>Yes</italic></td>
                    <td align="center" valign="bottom"><italic>Variable Output Debit</italic></td>
                    <td align="center" valign="bottom"><italic>The Universe of Talk</italic></td>
                    <td align="center" valign="bottom"><italic>Domain</italic></td>
                </tr>
            </thead>
            
            <tbody>
                <tr>
                    <td align="center">1.</td>
                    <td align="left">No Flush (TS)</td>
                    <td align="center">[0, 200]</td>
                    <td align="center">[0 0 100 200]</td>
                </tr>
                <tr>
                    <td align="center">2.</td>
                    <td align="left">A Little Flush (SdS)</td>
                    <td align="center">[150, 450]</td>
                    <td align="center">[150 250 350 450]</td>
                </tr>
                <tr>
                    <td align="center">3.</td>
                    <td align="left">Half Flush (SS)</td>
                    <td align="center">[400, 800]</td>
                    <td align="center">[400 500 650 800]</td>
                </tr>
                <tr>
                    <td align="center">4.</td>
                    <td align="left">Lots of Flush (BS)</td>
                    <td align="center">[750, 1200]</td>
                    <td align="center">[750 900 1100 1200]</td>
                </tr>
            </tbody>
            </table>
    </alternatives>
</table-wrap>
    </sec>
  </sec>
    <sec id="system-interface-design">
      <title>System Interface Design</title>
      <disp-quote>
        <p>The data that has been stored in the broker's MQTT is then
        connected to Kodular to be displayed in the form of real
        numbers. The creation of the application interface is carried
        out using the drag-and-drop method on the Koular platform, so
        that the development process becomes more efficient and easy to
        manage. Through this application display, users can monitor
        various important information in real-time, including:</p>
      </disp-quote>
      <list list-type="order">
        <list-item>
          <p>Sensor log data – a historical record of sensor
          readings.</p>
        </list-item>
        <list-item>
          <p>Up-to-date sensor reading data – direct sensor value
          information.</p>
        </list-item>
        <list-item>
          <p>Data from fuzzy logic calculations – output from
          fuzzy-based data processing systems.</p>
        </list-item>
      </list>
      <disp-quote>
        <p>In addition to the monitoring feature, the application is
        also equipped with additional menus such as live camera
        streaming for visual observation, as well as a plant information
        database that includes plant life, plant type, and planting
        season. With this integration, users can monitor the condition
        and development of crops thoroughly in one platform.</p>
        <graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image13.png" />
        <p>Figure 11. Designing Displays on Mobile Applications</p>
        <p><bold>System <italic>Hardware</italic> Planning</bold></p>
        <p>In the hardware section, the system consists of ESP-32 and
        ESP-32 CAM microcontrollers, DS18b20 temperature sensors, soil
        moisture sensors, yf s401 sensors, 5V relay modules, DS3132 RTC
        modules, buck converter modules, and Solar Power Plant (PLTS)
        system as independent power sources. Here is a block diagram and
        schematic of the hardware part set.</p>
      </disp-quote>
      <graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image14.png" />
      <disp-quote>
        <p>Figure 12. System Block Diagram</p>
        <p>The ESP32 microcontroller functions to process data from
        these sensors. The data received from the sensor will be
        processed using Mamdani's fuzzy</p>
        <p>algorithm to make decisions based on the DS3231 RTC in
        calculating the automatic watering time on chili plants. This
        processing process uses two main parameters, namely soil
        temperature and soil moisture. Based on the processing results
        of the fuzzy algorithm, the ESP32 can determine the optimal
        watering needs and transmit a signal to activate the watering
        system according to the temperature and humidity conditions of
        the soil. In addition, ESP32-CAM is used in this system to
        visually display chili plants and the surrounding environment.
        The camera on the ESP32-CAM functions to monitor the presence of
        pests on chili plants by capturing visuals with a camera. Once
        the shooting process is complete, the ESP32-CAM sends the
        resulting data to the ESP32 to be forwarded to cloud storage
        using the Wi-Fi connection owned by the ESP32. All information,
        both data from sensors and visual results from ESP32-CAM, is
        then stored and sent to the Firebase Realtime Database platform
        and can be accessed through the Koular application.</p>
      </disp-quote>
    </sec>
</sec>
<sec id="research-results">
  <title>RESEARCH RESULTS</title>
  <sec id="fuzzy-logic-and-internet-of-things-iot-based-testing">
    <title>Fuzzy Logic and Internet of Things (Iot)-Based
    Testing</title>
    <disp-quote>
      <p>This table presents data on the test results of Fuzzy
      <bold>Logic-based automatic</bold> plant watering systems and
      <bold>the Internet of Things (IoT).</bold> Each row shows
      measurements based on <bold>the date and time</bold> of data
      collection, as well as input values from the sensor, the output of
      the watering results, and the difference or error between the
      simulation results in Matlab and the microcontroller.</p>
    </disp-quote>
    <disp-quote>
      <p>Table 4. Fuzzy Logic Testing Data</p>
    </disp-quote>
<table-wrap id="T4">
    <label>Table 4. Fuzzy Logic Testing Data</label>
    <alternatives>
        <table frame="hsides" rules="groups">
            <thead>
                <tr>
                    <td align="center" valign="bottom" rowspan="2"><italic>Time</italic></td>
                    <td align="center" valign="bottom" colspan="3"><italic>Input</italic></td>
                    <td align="center" valign="bottom" colspan="2"><italic>Debit (mL)</italic></td>
                    <td align="center" valign="bottom" rowspan="2"><italic>Error (%)</italic></td>
                </tr>
                <tr>
                    <td align="center" valign="bottom"><italic>Mouth (°C)</italic></td>
                    <td align="center" valign="bottom"><italic>Moisture (%)</italic></td>
                    <td align="center" valign="bottom"><italic>Duration(s)</italic></td>
                    <td align="center" valign="bottom"><italic>Matlab</italic></td>
                    <td align="center" valign="bottom"><italic>Microcontroller</italic></td>
                </tr>
            </thead>
            
            <tbody>
                <tr>
                    <td align="left">Morning, 7.10</td>
                    <td align="center">25</td>
                    <td align="center">78</td>
                    <td align="center">6,48</td>
                    <td align="center">78.7</td>
                    <td align="center">85</td>
                    <td align="center">7.86</td>
                </tr>
                <tr>
                    <td align="left">Sore, 17.25</td>
                    <td align="center">30</td>
                    <td align="center">58</td>
                    <td align="center">19,09</td>
                    <td align="center">398</td>
                    <td align="center">250</td>
                    <td align="center">37.19</td>
                </tr>
                <tr>
                    <td align="left">Morning, 7.10</td>
                    <td align="center">26</td>
                    <td align="center">73</td>
                    <td align="center">6,48</td>
                    <td align="center">80.8</td>
                    <td align="center">85</td>
                    <td align="center">5.20</td>
                </tr>
                <tr>
                    <td align="left">Sore, 17.25</td>
                    <td align="center">28</td>
                    <td align="center">69</td>
                    <td align="center">14,04</td>
                    <td align="center">205</td>
                    <td align="center">184</td>
                    <td align="center">10.24</td>
                </tr>
                <tr>
                    <td align="left">Morning, 7.10</td>
                    <td align="center">24</td>
                    <td align="center">86</td>
                    <td align="center">6,87</td>
                    <td align="center">80.8</td>
                    <td align="center">90</td>
                    <td align="center">11.36</td>
                </tr>
                <tr>
                    <td align="left">Sore, 17.25</td>
                    <td align="center">28</td>
                    <td align="center">86</td>
                    <td align="center">7,09</td>
                    <td align="center">90.3</td>
                    <td align="center">93</td>
                    <td align="center">2.99</td>
                </tr>
                <tr>
                    <td align="left">Morning, 7.10</td>
                    <td align="center">23</td>
                    <td align="center">77</td>
                    <td align="center">6,87</td>
                    <td align="center">82.9</td>
                    <td align="center">90</td>
                    <td align="center">3.74</td>
                </tr>
                <tr>
                    <td align="left">Sore, 17.25</td>
                    <td align="center">29</td>
                    <td align="center">78</td>
                    <td align="center">12,29</td>
                    <td align="center">179</td>
                    <td align="center">161</td>
                    <td align="center">10.06</td>
                </tr>
                <tr>
                    <td align="left">Morning, 7.10</td>
                    <td align="center">26</td>
                    <td align="center">69</td>
                    <td align="center">6,25</td>
                    <td align="center">79.7</td>
                    <td align="center">82</td>
                    <td align="center">2.89</td>
                </tr>
                <tr>
                    <td align="left">Sore, 17.25</td>
                    <td align="center">28</td>
                    <td align="center">77</td>
                    <td align="center">14,04</td>
                    <td align="center">205</td>
                    <td align="center">184</td>
                    <td align="center">10.24</td>
                </tr>
                <tr>
                    <td align="left">Morning, 7.10</td>
                    <td align="center">26</td>
                    <td align="center">71</td>
                    <td align="center">6,25</td>
                    <td align="center">79.7</td>
                    <td align="center">82</td>
                    <td align="center">2.89</td>
                </tr>
                <tr>
                    <td align="left">Sore 17.25</td>
                    <td align="center">28</td>
                    <td align="center">66</td>
                    <td align="center">14,04</td>
                    <td align="center">205</td>
                    <td align="center">184</td>
                    <td align="center">10.24</td>
                </tr>
            </tbody>
        </table>
    </alternatives>
</table-wrap>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <mi>Error</mi>
    <mo>=</mo>
    <mfrac>
      <mrow>
        <mi>Nilai</mi><mo>&#xA0;</mo><mi>Mikrokontroler</mi>
        <mo>-</mo>
        <mi>Nilai</mi><mo>&#xA0;</mo><mi>Matlab</mi>
      </mrow>
      <mrow><mi>Matlab</mi><mo>&#xA0;</mo><mi>Value</mi></mrow>
    </mfrac>
    <mo>&#xD7;</mo><mn>100</mn><mo>%</mo>
  </mrow>

  <!-- Substitusi nilai -->
  <mrow>
    <mo>=</mo>
    <mfrac>
      <mrow><mn>85</mn><mo>-</mo><mn>78.7</mn></mrow>
      <mn>78.7</mn>
    </mfrac>
    <mo>&#xD7;</mo><mn>100</mn><mo>%</mo>
  </mrow>

  <!-- Hasil selisih -->
  <mrow>
    <mo>=</mo>
    <mfrac>
      <mn>6.3</mn>
      <mn>78.7</mn>
    </mfrac>
    <mo>&#xD7;</mo><mn>100</mn><mo>%</mo>
  </mrow>

  <!-- Final -->
  <mrow>
    <mo>=</mo><mn>7.8</mn><mo>%</mo>
  </mrow>
</math>
    <disp-quote>
      <p>The following is an average calculation of errors from the
      temperature data above.</p>
    </disp-quote>
<math xmlns="http://www.w3.org/1998/Math/MathML">
  <!-- Formula umum -->
  <mrow>
    <mi>Average</mi>
    <mo>&#xA0;</mo>
    <mi>error</mi>
    <mo>=</mo>
    <mfrac>
      <mrow>&#x03A3;<mi>error</mi></mrow>
      <mrow>&#x03A3;<mi>Trial</mi><mo>&#xA0;</mo><mi>Value</mi></mrow>
    </mfrac>
    <mo>&#xD7;</mo><mn>100</mn><mo>%</mo>
  </mrow>

  <!-- Substitusi -->
  <mrow>
    <mo>=</mo>
    <mfrac>
      <mn>114.9</mn>
      <mn>12</mn>
    </mfrac>
    <mo>&#xD7;</mo><mn>100</mn><mo>%</mo>
  </mrow>

  <!-- Hasil akhir -->
  <mrow>
    <mo>=</mo>
    <mn>9.57</mn><mo>%</mo>
  </mrow>
</math>
    <disp-quote>
      <p>For the example of rules with a temperature of 25 and a
      humidity of 78%, the results of the fuzzy mamdani calculation of
      78.7 mL were obtained as the output of the amount of watering. To
      see the dimensions on the matlab see the image below.</p>
    </disp-quote>
    <graphic mimetype="image" mime-subtype="jpeg" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image15.jpeg" />
    <disp-quote>
      <p>Figure 13. Matlab App Surface View</p>
      <p><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image16.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image16.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image17.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image17.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image16.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image16.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image18.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image19.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image19.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image19.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image19.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image19.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image20.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image21.png" />Figure
      13 above is the calculation dimension used using variable input
      temperature and humidity which affects the size of the watering
      discharge. Blue represents the area with the lowest temperature
      and humidity while yellow represents the area with the most
      watering discharge.</p>
      <p>Figure 14. Comparison Chart of Watering Discharge Data in the
      Morning Figure 14. Displaying a comparison of watering discharge
      data in the</p>
      <p>morning, two lines of data are visible: the blue line
      represents the actual data from the microcontroller, while the
      orange line represents the expected data or the simulation results
      from MATLAB. In general, the microcontroller data shows a higher
      discharge value compared to the expected value of MATLAB. The
      microcontroller graphic pattern shows an increase in discharge in
      the middle of the observation period, which then decreases again.
      Meanwhile, MATLAB data appears more consistent and tends to be
      flat, with small fluctuations over time. The difference between
      these two data shows that the actual watering system of the
      microcontroller tends to provide more water than the ideal
      calculation. This can happen because the fuzzy logic of
      microcontrollers is designed to be conservative, meaning that they
      prefer to water more to avoid the risk of underwatering plants. In
      addition, this difference can also be caused by technical factors
      such as inaccurate calibration of the flow sensor, or a delay in
      turning off the water pump, so that the discharge output is
      higher.</p>
    </disp-quote>
    <p><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image16.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image22.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image16.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image16.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image22.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image16.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image19.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image23.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image18.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image19.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image23.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image19.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image24.png" /><inline-graphic mimetype="image" mime-subtype="png" xlink:href="vertopal_2ef3261d03574b3183ee948e06767ad8/media/image25.png" /></p>
    <disp-quote>
      <p>Figure 15. Comparison Chart of Watering Discharge Data in the
      Afternoon</p>
      <p>Figure 15 shows a comparison of watering in the afternoon,
      showing a more significant difference than the morning graph. At
      the initial point, the data from MATLAB showed a very high
      watering discharge (about 400 ml), while the data from the
      microcontroller was much lower (about 200 ml). This indicates that
      in the early afternoon, the microcontroller system did not water
      as expected, or underwatering occurred. However, after that point,
      the graphs from the microcontroller and MATLAB began to show a
      similar pattern, although the discharge from the microcontroller
      was still slightly lower than the ideal value. This indicates that
      after a while, the system begins to adapt or read the
      environmental conditions better.</p>
    </disp-quote>
  </sec>
</sec>
<sec id="conclusions-and-recommendations">
  <title>CONCLUSIONS AND RECOMMENDATIONS</title>
  <disp-quote>
    <p>An automatic plant watering system based on fuzzy logic designed
    for chili plants was successfully made according to the research
    objectives. This system is able to assist farmers in optimizing the
    plant care process by watering automatically at a predetermined
    time, without the need for continuous manual involvement. In
    addition, this system is able to save water use by adjusting the
    watering volume based on soil moisture values and temperature that
    has been processed using fuzzy logic algorithms. The implementation
    of the fuzzy logic algorithm on the microcontroller showed fairly
    accurate performance. The comparison of the calculation results
    between the Matlab and the microcontroller has only a small
    difference, which indicates that the system can run optimally and
    according to the calculation design. The results of this test show
    that soil moisture sensors can be relied upon to detect soil
    moisture in a wide range of conditions, whether it is very dry, dry,
    humid, or wet. The sensor is most optimally used in dry conditions,
    while in humid to wet conditions, although the accuracy is still
    good, the error tends to be slightly greater due to the increased
    sensitivity of the sensor. With an average error accuracy of below
    5%, this sensor is very suitable as an automatic monitoring tool in
    IoT-based agricultural systems and fuzzy logic, especially to
    determine plant watering needs in real time. This system is able to
    provide additional support for farmers to monitor crop conditions
    and detect potential pest disturbances. In the next development, it
    is hoped that it can use cameras that are of better quality and can
    automatically detect small pests. To improve performance, it is
    necessary to consider the use of cameras with better optical
    quality, high-resolution image sensors, and faster image processing
    support, for example by integrating camera AI modules such as OpenMV
    or Raspberry Pi Camera which have more capable processors for
    testing with field conditions with a larger number of plants.</p>
  </disp-quote>
</sec>
<sec id="advanced-research">
  <title>ADVANCED RESEARCH</title>
  <disp-quote>
    <p>Research can also be done in further development can increase the
    capacity of plants and the quantity of watering from this tool, in
    further development it can also be realized in terms of solutive
    products and not just protitype and in further development it is
    hoped that it can use a camera that is of better quality and can
    detect small pests.</p>
  </disp-quote>
</sec>
<sec id="acknowledgment">
  <title>ACKNOWLEDGMENT</title>
  <disp-quote>
    <p>An expression of gratitude to the colleagues of the Department of
    Electrical Engineering at the Ujung Pandang State Polytechnic,
    especially the D3 Electrical Engineering Study Program for
    accommodating this research.</p>
  </disp-quote>
</sec>
<sec>
  <title>REFERENCES</title>
    <ref-list>
    <ref id="ref1">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Anggraini</surname><given-names>R.</given-names></name>
        </person-group>
        <article-title>Penilaian Organoleptik Cabai Rawit dengan Kemasan Ramah Lingkungan Berbahan Daun</article-title>
        <source>Agrofood</source>
        <year>2020</year>
        <volume>2</volume>
        <issue>2</issue>
        <fpage>9</fpage>
        <lpage>16</lpage>
      </element-citation>
    </ref>

    <ref id="ref2">
      <element-citation publication-type="book">
        <person-group person-group-type="author">
          <name><surname>Borg</surname></name>
          <name><surname>Gall</surname></name>
        </person-group>
        <article-title>Educational research: An introduction</article-title>
        <source>Longman</source>
        <year>1983</year>
        <comment>New York</comment>
      </element-citation>
    </ref>

    <ref id="ref3">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Harnowo</surname><given-names>D.</given-names></name>
        </person-group>
        <article-title>Petunjuk Praktis Menanam Tembakau</article-title>
        <source>Jurnal Usaha Nasional</source>
        <year>1993</year>
        <volume>21</volume>
        <issue>1</issue>
        <fpage>23</fpage>
        <lpage>38</lpage>
      </element-citation>
    </ref>

    <ref id="ref4">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Ilmar</surname><given-names>A.</given-names></name>
        </person-group>
        <article-title>Penerbit LP3M UMY</article-title>
        <source>Teknik</source>
        <year>2016</year>
        <volume>37</volume>
        <issue>2</issue>
      </element-citation>
    </ref>

    <ref id="ref5">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Imtiyaz</surname><given-names>H.</given-names></name>
          <name><surname>Prasetio</surname><given-names>B. H.</given-names></name>
          <name><surname>Hidayat</surname><given-names>N.</given-names></name>
        </person-group>
        <article-title>Sistem pendukung keputusan budidaya tanaman cabai berdasarkan prediksi curah hujan</article-title>
        <source>Jurnal Pengembangan Teknologi Informasi Dan Ilmu Komputer</source>
        <year>2017</year>
        <volume>1</volume>
        <issue>9</issue>
        <fpage>733</fpage>
        <lpage>738</lpage>
      </element-citation>
    </ref>

    <ref id="ref6">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Jaelani</surname><given-names>A.</given-names></name>
        </person-group>
        <article-title>Kontrol Kestabilan Suhu dan Kelembaban Menggunakan Fuzzy Pada Area Tanaman Tomat Dan Cabai Dengan Sistem Tanam Tumpang Sari</article-title>
        <source>Jurnal JREEC (Jurnal Renewable Energy, Electronics and Control)</source>
        <year>2021</year>
        <volume>1</volume>
        <issue>1</issue>
        <fpage>36</fpage>
        <lpage>42</lpage>
      </element-citation>
    </ref>

    <ref id="ref7">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Jayanti</surname><given-names>S.</given-names></name>
          <name><surname>Hartati</surname><given-names>S.</given-names></name>
        </person-group>
        <article-title>Sistem Pendukung Keputusan Seleksi Anggota Paduan Suara Dewasa Menggunakan Metode Fuzzy Mamdani</article-title>
        <source>IJCCS (Indonesian Journal of Computing and Cybernetics Systems)</source>
        <year>2012</year>
        <volume>6</volume>
        <issue>1</issue>
        <fpage>55</fpage>
        <lpage>66</lpage>
      </element-citation>
    </ref>

    <ref id="ref8">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Kaswidjanti</surname><given-names>W.</given-names></name>
          <name><surname>Aribowo</surname><given-names>A. S.</given-names></name>
          <name><surname>Wicaksono</surname><given-names>C. B.</given-names></name>
        </person-group>
        <article-title>Implementasi Fuzzy Inference System Metode Tsukamoto Pada Pengambilan Keputusan Pemberian Kredit Pemilikan Rumah</article-title>
        <source>Telematika</source>
        <year>2014</year>
        <volume>10</volume>
        <issue>2</issue>
        <fpage>137</fpage>
        <lpage>146</lpage>
      </element-citation>
    </ref>

    <ref id="ref9">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Mubiyanto</surname><given-names>B. M.</given-names></name>
        </person-group>
        <article-title>Tanggapan tanaman kopi terhadap cekaman air</article-title>
        <source>Jurnal Puslit Kopi dan Kakao</source>
        <year>1997</year>
        <volume>13</volume>
        <issue>2</issue>
        <fpage>83</fpage>
        <lpage>95</lpage>
      </element-citation>
    </ref>

    <ref id="ref10">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Munadi</surname></name>
        </person-group>
        <article-title>Aplikasi Logika Fuzzy Pada Pembuatan Penjejak Panas Satu Sumbu</article-title>
        <source>ROTASI</source>
        <year>2008</year>
        <volume>10</volume>
        <issue>1</issue>
        <comment>Semarang</comment>
      </element-citation>
    </ref>

    <ref id="ref11">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Nasution</surname><given-names>M.</given-names></name>
        </person-group>
        <article-title>Karakteristik Baterai Sebagai Penyimpan Energi Listrik Secara Spesifik</article-title>
        <source>JET (Journal of Electrical Technology)</source>
        <year>2021</year>
        <volume>6</volume>
        <issue>1</issue>
        <fpage>35</fpage>
        <lpage>40</lpage>
      </element-citation>
    </ref>

    <ref id="ref12">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Nugraha</surname><given-names>R. R.</given-names></name>
          <name><surname>Sejati</surname><given-names>H. P.</given-names></name>
        </person-group>
        <article-title>Implementasi Sistem Pemantauan Penyiraman Tanaman Cabai Berbasis IoT</article-title>
        <source>Jurnal Teknologi Informasi</source>
        <year>2024</year>
        <volume>5</volume>
        <issue>3</issue>
        <fpage>584</fpage>
        <lpage>595</lpage>
      </element-citation>
    </ref>

    <ref id="ref13">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Panulisan</surname><given-names>B. S.</given-names></name>
          <name><surname>Suzanti</surname><given-names>W.</given-names></name>
          <name><surname>Handayani</surname><given-names>Y. S.</given-names></name>
          <name><surname>Permana</surname><given-names>B. R. S.</given-names></name>
          <name><surname>Khaerudin</surname><given-names>D.</given-names></name>
          <name><surname>Rini</surname><given-names>A. S.</given-names></name>
          <name><surname>Rahmatullah</surname><given-names>A.</given-names></name>
        </person-group>
        <article-title>Kelayakan Potensi Sumber Daya Energi Terbarukan Sebagai Solusi Keterbatasan Daya Listrik di Pedesaan dengan Metode Sel Surya</article-title>
        <source>Indonesian Journal of Thousand Literacies</source>
        <year>2023</year>
        <volume>1</volume>
        <issue>3</issue>
        <fpage>279</fpage>
        <lpage>288</lpage>
      </element-citation>
    </ref>

    <ref id="ref14">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Pogasang</surname><given-names>J.</given-names></name>
          <name><surname>Gunawan</surname></name>
          <name><surname>Surimi</surname><given-names>La</given-names></name>
        </person-group>
        <article-title>Sistem Cerdas Irigasi Menggunakan Metode Fuzzy Logic Pada Tanaman Tomat Berbasis IoT</article-title>
        <source>Jurnal Teknologi Informasi dan Komputer</source>
        <year>2024</year>
        <volume>2</volume>
        <issue>2</issue>
        <fpage>90</fpage>
        <lpage>93</lpage>
      </element-citation>
    </ref>

    <ref id="ref15">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Rifaat</surname><given-names>A. B.</given-names></name>
          <name><surname>Sephiani</surname><given-names>F.</given-names></name>
          <name><surname>Ridwang</surname></name>
          <name><surname>Adriani</surname></name>
        </person-group>
        <article-title>Pengembangan Sistem Penyiram Tanaman Otomatis Berbasis IoT Menggunakan Sensor Suhu, Kelembapan Udara dan Kelembapan Tanah</article-title>
        <source>Jurnal Teknik Elektro UNISMUH</source>
        <year>2024</year>
        <volume>16</volume>
        <issue>2</issue>
        <fpage>15</fpage>
        <lpage>23</lpage>
      </element-citation>
    </ref>

    <ref id="ref16">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Sawitri</surname><given-names>D.</given-names></name>
        </person-group>
        <article-title>Internet Of Things Memasuki Era Society 5.0</article-title>
        <source>Jurnal Komputer, Informasi Teknologi, dan Elektro</source>
        <year>2023</year>
        <volume>8</volume>
        <issue>1</issue>
      </element-citation>
    </ref>

    <ref id="ref17">
      <element-citation publication-type="thesis">
        <person-group person-group-type="author">
          <name><surname>Siman</surname></name>
        </person-group>
        <article-title>Rancang Bangun Sistem Penyiram Tanaman Otomatis Menggunakan Arduino dan Sensor Moisture Sebagai Pengukur Kelembaban Tanah Untuk Tanaman Cabai</article-title>
        <source>Skripsi</source>
        <year>2022</year>
        <comment>Makassar: Fakultas Tarbiyah dan Keguruan, Universitas Islam Negeri Ar-Raniry Banda Aceh</comment>
      </element-citation>
    </ref>

    <ref id="ref18">
      <element-citation publication-type="book">
        <person-group person-group-type="author">
          <name><surname>Kusumadewi</surname><given-names>S.</given-names></name>
          <name><surname>Purnomo</surname><given-names>H.</given-names></name>
        </person-group>
        <article-title>Aplikasi Logika Fuzzy Untuk Pendukung Keputusan</article-title>
        <source>Graha Ilmu</source>
        <year>2010</year>
        <comment>Yogyakarta</comment>
      </element-citation>
    </ref>

    <ref id="ref19">
      <element-citation publication-type="report">
        <person-group person-group-type="author">
          <name><surname>Situmorang</surname><given-names>W. A.</given-names></name>
        </person-group>
        <article-title>Sistem Monitoring Penyiraman Tanaman Otomatis Berbasis NodeMCU ESP8266</article-title>
        <source>Laporan Projek Akhir 2, Program Studi Metrologi Dan Instrumentasi, Fakultas Matematika dan Ilmu Pengetahuan Alam, Universitas Sumatera Utara</source>
        <year>2020</year>
        <comment>Medan</comment>
      </element-citation>
    </ref>

    <ref id="ref20">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Yahwe</surname><given-names>C. P.</given-names></name>
          <name><surname>Isnawaty</surname></name>
          <name><surname>Aksara</surname><given-names>L. M. F.</given-names></name>
        </person-group>
        <article-title>Rancang Bangun Prototype System Monitoring Kelembaban Tanah Melalui SMS Berdasarkan Hasil Penyiraman Tanaman: Studi Kasus Tanaman Cabai dan Tomat</article-title>
        <source>Jurnal semanTIK</source>
        <year>2016</year>
        <volume>2</volume>
        <issue>1</issue>
        <comment>Kendari: Universitas Halu Oleo</comment>
      </element-citation>
    </ref>

    <ref id="ref21">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Mootalu</surname><given-names>R.</given-names></name>
          <name><surname>Pembengo</surname><given-names>W.</given-names></name>
          <name><surname>Rahim</surname><given-names>Y.</given-names></name>
        </person-group>
        <article-title>Tingkat Frekuensi Penyiraman dan Waktu Aplikasi Pupuk Phonska Terhadap Pertumbuhan Dan Hasil Cabai (Capsicum annum L.)</article-title>
        <source>Jurnal Agroteknotropika</source>
        <year>2022</year>
        <volume>11</volume>
        <issue>1</issue>
        <fpage>49</fpage>
        <lpage>56</lpage>
      </element-citation>
    </ref>

    <ref id="ref22">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Risaldi</surname></name>
          <name><surname>Aslan</surname></name>
          <name><surname>Ali</surname><given-names>Y.</given-names></name>
          <name><surname>Marufa</surname></name>
          <name><surname>Mahmuddin</surname></name>
          <name><surname>Rahmat</surname><given-names>A.</given-names></name>
          <name><surname>Sukmasari</surname><given-names>A.</given-names></name>
        </person-group>
        <article-title>Efektivitas Penerapan Irigasi Tetes (Dripirrigation) Pada Tanaman Cabai Merah</article-title>
        <source>Jurnal Teknik Hidro</source>
        <year>2024</year>
        <volume>17</volume>
        <issue>1</issue>
        <fpage>14</fpage>
        <lpage>22</lpage>
      </element-citation>
    </ref>

    <ref id="ref23">
      <element-citation publication-type="journal">
        <person-group person-group-type="author">
          <name><surname>Pratama</surname><given-names>F. R.</given-names></name>
          <name><surname>Raihan</surname><given-names>S. R.</given-names></name>
          <name><surname>Pramudhita</surname><given-names>N. A.</given-names></name>
        </person-group>
        <article-title>Perancangan dan Implemenasi Protokol MQTT Pada Sistem Parkir Cerdas Berbasis IoT</article-title>
        <source>Jurnal Informatika dan Teknik Elektro Terapan</source>
        <year>2023</year>
        <volume>11</volume>
        <issue>3</issue>
        <fpage>375</fpage>
        <lpage>483</lpage>
      </element-citation>
    </ref>
    </ref-list>
</sec>
</body>
</article>
