Pesona Batik Jombang SME generates liquid waste from batik dyeing and washing processes that is still monitored manually and non-continuously, risking environmental pollution and violating Indonesian Minister of Environment Regulation No. 5 of 2014. This study designs and develops an IoT-based wastewater quality monitoring system using a multi-level thresholding method that classifies water conditions into three categories: Safe, Caution, and Unsafe. The system integrates an ESP32 Dev Module, a PH4502C pH sensor, a DS18B20 temperature sensor, and a DFRobot Gravity Analog TDS Sensor V1.0 connected via the MQTT protocol to a Node-RED visualization platform. The novelty lies in applying the minimum function K = min(f(pH), f(T), f(TDS)) as a multi-parameter aggregation mechanism based on the worst-case scenario principle, with thresholds derived directly from Indonesian regulations and WHO Guidelines 2022. Sensor calibration yielded a MAPE of 1.86% (pH), 0.37% (temperature), and 2.20% (TDS), all below the 5% tolerance. Field testing on 20 real samples demonstrated a classification accuracy of 100%.
Copyrights © 2026