More reliable alternative to Sonoff SNZB-04 window sensors?

I’ve been using Sonoff SNZB-04 for a few years, I’ve got around 10 of them, but there is always some of them going offline. The only solution is removing them, re-do the search for a new device so it can be readded and then readjust all the sensor names. It’s a bit of a pain. Now I have one that wouldn’t re-pair. Is there something more reliable now?