The sensor does; the light does not - and indeed must not.
A 'sensor light' is not 'a thing' but a light and a sensor.
But the sensor can be built into the bulb, so I would say calling that a sensor light is reasonable.
However, most of the replies are considering hard-wiring only, and it is possible the distance and walls within the property will only allow hard-wiring, but also we have many wireless devices today, and likely there is a wireless option, and a relayed option.
My landing light is powered from a relay, the relay is hard-wired to the original two-way switches, but is also wireless, and the switches change the state of the relay, does not matter if switched on, or switched off, it detects change of state, so one can integrate wireless and wired together, what I am not sure about is the timed off, although I also see a health and safety problem with a timed off, in a stair well with no natural light.
This is the reason I got rid of my PIR controlled outside lights, being on a set of steps with your hands full of shopping when the lights go off, is not funny, hand full so no waving at sensors, and neither can one put the shopping down, as don't know what one is putting it down on, and until you put it down, can't get phone out of pocket to use its built in torch. So now I use the phone to turn the lights on before I leave the car, and once in house, voice command to turn them off again.
Sensors containing a changeover relay do exist but one has to look for them and potentially not the prettier models. One can add a relay but then more bulk and fiddling.
The major problem with so-called smart devices, is working out what they will do before buying.
Also making sure the batteries are charged, my google "Home" app will work all my smart lights, does not matter what make, but the dedicated app there is so indication of battery state.

Only when using the app for that make, can I see if the batteries are OK. And I have no idea when using timers, if that timer is in the device, the hub, or part of Nest Mini system, I know I can say "hey google turn off bedroom lights in half an hour" and it does, but no idea where that timer is.
There is also the power up state. In the main, a bulb will turn on when power is restored after a power cut, but tried to get an outside light to do that last night, and it failed. The wall switched seem to be reverse, lose power, and on return they stay off. Some will not change state in a power cut, I use light switches with batteries because they do not change state with a power cut.
It may be better to say what the problem is, as there may be another option. Top of my stairs, I had a rechargeable torch, which has built in PIR, and auto lights with a power cut, so should my smart lighting fail, I can still see to go down the stairs.