I am no Tolkien scholar, but my layman's take is that Sauron failed to see the ring because he was so blinded by the lust for power that could only conceive of actions taken by his powerful enemies to claim more power. He (nor Gollum) could not imagine someone willingly giving that power away.
That said, neither author imagined surveillance on the level that we have today with AI "watchers."