from another post I read somewhere it seems that the metal contacts in the key fob can become corroded although it can't be seen..try cleaning the contacts.
A couple of ways to clean, I'm told. Either run a lead/graphite pencil over them or try some wd40 on a cotton bud...allow to dry.
Al