https://www.schneier.com/blog/archives/2017/11/man-in-the-midd_8.html

In my case, the battery inside my car key finally died (10 yrs old) and the car didn't 'recognize' the key anymore (It couldn't transmit the code to the car). Naturally, the alarm system went off whenever I tried to open the doors, etc. As soon as the battery was replaced ($5), everything worked again. YMMV.