Issue is, around twilight, or other similar light conditions outdoors, it’s not dark enough for the light sensor to turn the light on yet, but if one enters the bathroom, one’s shadow will almost always cause the light to turn on for a moment. Once it gets fully dark outside, this is not a problem, as light is then on continuously.
OK to use such a night light on Shabbat? Yom Tov? Thank you.