Marcela
The Wiimote specifically detects lights around 940nm (a wavelength undetectable to the human eye, which can only see light between 750nm and 350nm approx). Wavelengths below 940nm are specifically filtered by the red filter at the front of the device. You will find some hacks on youtube involving removing the filter and using the Wiimote to track other lower wavelength light sources like laser light, which work well in dark conditions but not in normal light as the ambient light will overload the tracking.
Essentially it depends on which wavelength your ambient light is emitting

In a classroom with some ambient sunlight and full fluorescent tubes lighting the classroom there is no effect as all light emmitt light with a wavelength well below 950nm. Thus I find the Wiimote and 940nm IR-Led works awesome.
However, if a flame, sunlight or other infrared source is present then yes this will affect the performance of your Wiimote.
You can actually test the Wiimote Interactive Whiteboard software using a cigarette lighter which emits enough Infrared light for the Wiimote to detect and track.
If you are having trouble getting the Wiimote to track you IR-Led it is more likely that your IR-Led is either under powered or lacks strength.
benpaddlejones