As artificial intelligence (AI) and robotics advance, it’s only a matter of time before machines develop sentience that rivals our own.