Do Robots Deserve Rights? What if Machines Become Conscious?

What shall we do once machines become conscious? Do we need to grant them rights?