I have over a dozen motion detectors of the various home store brands and they go bad a lot. You might have had a bulb blow it or it muight have just give up the ghost.. Sometimes when a bulb goes bad an internal standoff will bridge and short out. That blows the triac in a dimmer or motion detector. I have even had them trip a breaker.