Electrical energy waste in office rooms can occur when lamps do not adapt to ambient light conditions, human presence, and time. This study implements Mamdani fuzzy logic on an ESP32 to regulate lamp brightness intensity based on three input variables, namely light intensity using an LDR sensor, human presence using a PIR sensor, and time using an RTC. The light variable consists of dark, dim, and bright; human presence consists of present and absent; while time consists of morning, active, and night. The system output is the lamp brightness level with fuzzy sets off, dim, medium, and full bright. The system uses 12 fuzzy rules with Mamdani inference, minimum operator, maximum aggregation, and centroid defuzzification. Testing was carried out by simulation using seven main scenarios and nine verification points. The results show that the system is able to produce different brightness levels according to combinations of input conditions. At 150 lux, with human motion detected, and time 06:00, the system produced an output of 57.64% with a PWM value of 147 in the medium category. The system has the potential to regulate lighting adaptively, but testing did not include power consumption measurement and direct calibration of light intensity.