Data looks and acts similar to humans, but he is an android, a form of artificial intelligence. He is, in essence, a computer. He processes and stores information similarly to a computer, and his behavior and actions are based on algorithms and decision trees stored within his programming. If you watch the show, you'll see that Data doesn't say or do anything that isn't logical, because computers are based entirely on logic.
When you give your desktop computer a command, it uses logic to understand the command and execute a function. The programmers and engineers who design your computer use billions of bits, each bit representing a single unit of information. Perhaps you could liken this to the individual neurons in a human brain, each sending their own signal that eventually combine to produce the phenomenon of consciousness and self-awareness.
Unlike a human brain, the computer demands that each of those bits be in perfect agreement with each of its billions of brothers or the entire system could crash. Similarly, Data has this requirement as well, but is also trying to be human. Towards the end of the Star Trek: The Next Generation TV series, Data is close to becoming human, and at times acts more human than humans. He is selfless, moral, and incorruptible. All the time this android is trying to become more human when, in reality, humans might be better off trying to become more android.






