Seeing how consciousness is defined as being aware of one-self, machines will never be conscious. Since, we program machines and give them everything they know, every last algorithm, I don't think that we will ever be able to code a consciousness algorithm.
Read more about the weak and strong AI theories to understand what I mean.
Read more about the weak and strong AI theories to understand what I mean.