Ahhh ...
I thought the title meant that the OP wanted to detect when a memory cell would no longer reliably hold data.
...R