Journal of Applied Electrical Engineering
Vol. 10 No. 1 (2026): JAEE, June 2026

Formalin Detection System in Fish with HCHO Sensor and pH Sensor Using Fuzzy Logic Method

Rainhart Sitohang (Electronics Engineering Technology Study Program, Electrical Engineering Department, Politeknik Negeri Batam, Batam, Indonesia)
Illa Aryeni (Electronics Engineering Technology Study Program, Electrical Engineering Department, Politeknik Negeri Batam, Batam, Indonesia)
Hana Mutialif Maulidiah (Manufacturing Electronics Engineering Study Program, Electrical Engineering Department, Politeknik Negeri Batam, Batam, Indonesia)
Ririn Humaera (Electronics Engineering Technology Study Program, Electrical Engineering Department, Politeknik Negeri Batam, Batam, Indonesia)
Handri Toar (Power Plant Engineering Technology Study Program, Electrical Engineering Department, Politeknik Negeri Batam, Batam, Indonesia)
Jum Malindo Siregar (Electronics Engineering Technology Study Program, Electrical Engineering Department, Politeknik Negeri Batam, Batam, Indonesia)



Article Info

Publish Date
29 Jun 2026

Abstract

This study aims to design a system for detecting formalin and pH levels in fish using the Mamdani Fuzzy Logic method. The system consists of an HCHO sensor and a pH sensor as the system input, and an Arduino Mega 2560 microcontroller as a data processor. The data is processed in real-time and classified into three categories. Testing was carried out on snapper samples with a duration of 1–60 minutes and 10 repeats of the experiment. The results of the study showed that the accuracy rate of the system was 91%. The system can identify formalin levels and classify them into safe (0 ppm formalin, pH 6,5), alert (12,42 ppm, pH 6,64), and danger (19,29 ppm, pH 5,42). The implementation of this system can facilitate the direct detection of formalin in fish and can help increase public awareness of the dangers of formalin.

Copyrights © 2026






Journal Info

Abbrev

JAEE

Publisher

Subject

Control & Systems Engineering Electrical & Electronics Engineering

Description

JAEE (Journal of Applied Electrical Engineering) e-ISSN: 2548-9682 is a peer-reviewed scientific journal published by the Department of Electrical Engineering, Politeknik Negeri Batam, Indonesia. It is a free-of-charge open access journal published in two issues per year (June, December). The ...