Door break sensor becoming unresponsive

I have a door break sensor that turns on lights when the door opens. Everyday the sensor becomes unresponsive. Home assistant still sees it, but when I open the door the accelerometer does not change and the door break does not change from closed to open, and the lights do not come on. If I reboot my home assistnat yellow, it work again, but I’m trying avoid having to reboo it every time it goes unresponsive. Any ideas?