Light sensors provide high light intensity, enabling very accurate measurement for both positioning and detection, and they can be made very small and waterproof, so that they are suitable to use in high- moisture places. Another advantage is measurement speed, which is very high due to the use of light as a medium. VL53 LOX can utilize a 3.3 V while HC-SR04 can only be used with 5 V. Both sensors perform well in the 10-50 cm range. Ultrasonic sensor readings above 50 cm are often erroneous, however. [PERSON] et al. [13] compare IR sensors with ultrasonic sensors. The authors tested multiple measurements for different materials and different colors. The resolution was 10 mm and above for both sensors. They concluded that IR sensor measurements showed nonlinear output while Ultrasonic sensor output was linear. The laser sensor performed well from 5 mm to 750 mm while providing a high data rate. The ultrasonic sensor and IR sensor are not effective at very small distances. In our work,we use laser sensors due to their close range, since the distance between a full tissue paper roll and an empty tissue roll is 35 mm to 107 mm. In contrast to the above-mentioned work, our system uses a time of flight (ToF) distance sensor instead of an ultrasonic or infrared sensor. Compared to ultrasonic sensors, ToF distance sensors are smaller in size, although they are slightly more expensive. Furthermore, we use an ESP32 SoC that is small enough to install on any paper dispenser. [PERSON] et al. [14] present a holistic conceptual approach for IoT system development and implementation for bathroom safety enhancement. A typical sensor module consists of four main components--a power supply, sensors, actuators, and a communication port. The study demonstrates the tremendous potential of IoT and big data applications for improving user sustainability. Nevertheless, the authors do not discuss the durability of such a system or the power constraints to power up the system. [PERSON] et al. [15] propose an IoT system to monitor the status of toilets and improve their maintenance in an airport. For the toilet paper dispenser, a Mini Ultra Pro, a VL53 LOX sensor, and the LoRa protocol are used. A hole is created in the upper side of the dispenser to mount the sensor in that system. Damaging the original dispenser cover and mounting a custom device presents many problems. It is difficult to make the pinhole align with the sensor. In addition, LoRa network infrastructure is required in place of typical existing Wi-Fi network. Using existing paper dispensers without damaging them and using existing Wi-Fi network infrastructure would be a more cost-effective solution. There have been a few studies on toilet hygiene systems using IoT. [PERSON] et al. [16] monitor a toilet using a PIC16F877A, a gas sensor, an ultrasonic sensor, a proximity sensor, and a GSM modem. [PERSON] et al. [17] monitor a toilet using mainly a NodeMCU, a gas sensor, an ultrasonic sensor, and an infrared sensor. While these systems have merit, we focus exclusively on paper dispensers. The growth of the Internet of thing (IoT) creates new challenges including network integration, scalability, energy efficiency, heterogeneity, and machine to machine (M2M) communication. This means that network architecture design becomes very important, as it can help reduce total deployment cost and power consumption. When an IoT device is in active mode, it consumes more power, causing battery life to decrease significantly. Saving power is a challenge for many authors [17; 18; 19; 20]. Power-saving depends on specific deployment details, technologies, channel access mechanisms, network scale, and spatial coverage. Power-saving modes should be implemented and combined with device profiles, wake up capability, and power consumption. Ideally, IoT components should be turned off during sleep state, configuring a longer sleep time in a cycle and triggering criteria [18].