My eBike sensor showing assist level and battery stopped working mid ride.

I've had my Edge Explore 2 for several years and it has worked great displaying assist mode and battery throughout the day. For the past five rides, the sensor loses connection to my bike after about 15 minutes. I have tried removing and reinstalling the eBike sensor, but the problem continues. What can I do to maintain connectivity of the eBike sensor?