The monitoring of student rooms in pesantren with a large number of students is still largely done manually, which can lead to inaccuracies in recording the number and presence of students. The limited number of supervisors and the variation in the position of students when entering and exiting the rooms are the main issues that affect the accuracy of the monitoring system. Therefore, this study focuses on testing and analyzing the performance of sensors as an important step in designing a reliable and accurate student room monitoring system. This research uses an engineering research approach with an experimental method conducted directly in an indoor environment. The testing was carried out on two types of sensors, namely infrared (IR) sensors and ultrasonic sensors JSN-SR04T, to evaluate their ability to detect human objects based on variations in distance and lighting conditions. This study aims to determine the characteristics, reliability, and stability of each sensor in detecting the presence of students under real conditions at the room door area. The results showed that the infrared sensor performed well at very close distances but its reliability decreased at medium to long distances and under low light conditions. On the other hand, the ultrasonic sensor JSN-SR04T showed more stable and consistent performance at various distances and was not affected by changes in lighting conditions. Based on these results, the ultrasonic sensor JSN-SR04T is considered more suitable to be used as the main sensor in the real-time student counting system, while the infrared sensor can be used as a supporting sensor at close distances.
Copyrights © 2026