Of course, you did not state the Brand/Model of the Dusk to Dawn sensor concerned.
However, such devices utilize some type of Photo-Sensor,
which usually Fail/Deteriorate - within about ten years.
If the Photo-Senser is integrated within the device,
the entire device needs to be replaced.
One...