An electrical device can include a sensor module that measures at least one parameter, where the at least one parameter is associated with determining the presence of a living being in a volume of space. The electrical device can also include a controller coupled to the sensor module, where the controller receives a measurement of the at least one parameter to determine whether the living being is in the volume of space. The electrical device can further include at least one ultraviolet (UV) light source coupled to the controller, which operates the at least one UV light source to emit UV light when the living being is not in the volume of space, and where the controller prevents the at least one UV light source from emitting the UV light when the living being is in the volume of space.