You have a poor understanding of sentience. If an AI ever were to achieve sentience, it would be fully capable of reasoning and thinking like a human. Humans can and do change their motivations based on their experiences, a fully sentient AI would be no different.
That being said, I believe we’re centuries away from creating sentience, if it’s even possible, so I’m not too worried about “I, Robot” coming true any time soon.