# Optimizing Ambiance: Intelligent RGB Lighting Control in Structures Using Fuzzy Logic
## 2 Related Work  
The system under development aligns with the technological perspective and aims to contribute to human emotions and behavior within different structures. This system poses a scenario of application in environments, whether private, personal, or social, considering technology as a means rather than an end. Beginning with the concept of AIoT, derived from Artificial Intelligence of Things (AIoT), which originated from home automation control systems. AMI (ambient intelligence) refers to automated systems integrating technology into homes to enhance life quality, comfort, security, and energy efficiency. These systems enable centralized and/or remote control and management of various domestic aspects such as lighting, air conditioning, appliances, security, blinds, and irrigation. Within AMI, lighting control refers to the ability to control lights within a structure in an automated or remote manner. It can offer comfort, energy efficiency, and security. Ambient Assistant Live (AAL) is an application referring to artificial lighting, ambient sound, and temperature control system applications. It facilitates remote lighting control via a mobile application or voice commands. In the case of having DIMMER controllers, they enable lighting regulation beyond simply turning lights on and off. AAL enables custom scene development, defining different lighting settings for various situations such as \"Dinner Mode\" or \"Movie Mode\". AAL aims to create user behavior patterns depending on technology usage over different times and days. AMI and AAL fall within the IoT technological paradigm, with increasing influence of artificial intelligence (AI). The driving concept behind the research is AIoT, which refers to the combination of IoT with AI, in addition to using psychological and social engineering concepts and their influence on complex situations like behavior, which is where the proposed development converges. In the research by [PERSON] (2015), the correlated color temperature (CCT) and illuminance level of LED lighting affect visual comfort during sustained attention tasks. It was found that a CCT of 3300 K and an illuminance of 300 lx result in greater visual comfort, according to electroencephalogram (EEG) signals, sustained attention tests, and participants' subjective evaluations. In addition, it was observed that a CCT of 4000 K also provides good visual comfort and performance in tasks. These findings are significant for the design of LED lighting tools, as they suggest that adjusting the CCT and illuminance can improve efficiency and satisfaction in work and studying. Adaptive lighting is an emerging concept in the IoT realm, applicable to both AMI and AAL. This technology does not require sensors; instead, users define parameters based on their intended usage before the use of the necessary technology for its operation. Other elements of adaptive lighting systems use photosensitive sensors to adjust lighting automatically according to environmental conditions, thereby enhancing comfort and energy efficiency. Motion sensors are essential components of adaptive lighting, detecting human presence and activating lights accordingly. This not only improves comfort by eliminating the need for searching for light switches, but also can contribute to security by deterring intruders. Moreover, adaptive lighting can reduce energy consumption by ensuring lights are only on when required and at the necessary power. Through a detailed study conducted in an open-plan office in Singapore, the impact of illuminance sensor blockage on desks on the efficacy of daylight harvesting was investigated. Employing a support vector machine (SVM), an algorithm was developed that could detect with 99% accuracy whether the sensors were blocked or not, enabling the identification of a 24% energy wastage due to obstructed sensors. This finding underscores the significance of sensor placement and monitoring to maximize energy savings and ensure the optimal performance of lighting systems in office settings [3].