Couldn't a robot be programmed to respond to stimuli, and to communicate with other robots? Would that then be a form of sentience?
Overall the point here is that sentience isn't a very useful measure of anything. If there were an explicit law recognizing the rights of all living things to a decent death, we would essentially be forced to become exclusive carnivores, as its almost impossible to euthanize a plant or fungus.