Light switch is off

Hi: Previously when I went through tunnel or under an overpass during the day, I would get this warning for a few minutes on my readout screen. Now I get it in bright sunlight. I can turn on lights and it will go away only to return. I would like to find the sensor and check the wires or get a new one but where is it on my 04 xj8 non supercharged non VDP non L wheelbase car? Thank you.

What is the warning that you are seeing?

The title of my post is what I read in the information center window. “LIGHT SWITCH IS OFF.”