Intuition for when it comes to understanding whether someone is happy or sad is usually pretty good and accurate, we evolved to be able to empathize well (it's one of the keys to our survival).
However, we can easily empirically test if a dog is happy when wiggling its tail by hooking up a machine to his brain to see neuroactivity.
We also know a dog is happy when wiggling its tail because every time a dog is given something that it wants, like a tasty treat or a leash for a walk, or about to be given something that it wants, it wiggles its tail - this is not just one experiment, this is consensus after billions of dogs behave the same.
You mean like an antivirus seeking out viruses to protect the computer from?
Or a plant seeking out water with the roots?
Or a self-driving Tesla seeking out the road patterns ahead to follow?
Or an NPC in a game seeking out to kill another NPC?
It depends what you mean by 'seeking out'. Every being can evolve to 'try' and get to things, but there's a black and white different between simply getting from A to B, that anything can be programmed/evolve to do simply for commands/survival tactics, and wanting to get from A to B because you desire it.
Scenario 1:
1. X being needs more Y for better chances of survival
2. through evolution, X changes so that it has a better/more efficient way to get to Y
3. X automatically goes to Y
The AI video I linked you before is a good example of this. The AI does trial and error through classical conditioning until it achieves the goal (jumping over the obstacle).
Scenario 2:
1. X being needs more Y for better chances of survival
2. through evolution, X's brain learns to desire/crave Y more, so that X wants to get to Y more
3. X wants to get to Y more
This is an example of how our primitive brain (and many other animals') brain worked, like humans trying to get to sweet fruit more than non-sweet ones for more calories - this is done through operant conditioning, by having a better reward with the sweeter fruit (first with the brain having a better reward with the sugar, then us having a better reward with the taste).
Scenario 3:
1. X being learns he needs more Y for better survival chances, through understanding of the environment and testing
2. X wants to get more Y
Like us understanding that B12 is a needed supplement, and then us wanting to supplement it.
Scenario 1 doesn't have a brain (central nervous system), scenario 2 and 3 do, and are sentient because they want something.
This goes back to Dennett's creatures.
I would suggest reading that for a better understanding.
Sometimes it's useful to go back and read the previous posts to clear your head a bit.