Mosquito trap works with all lighting conditions but it is more effective in dark rooms than when the ultraviolet is more attractive to flies.