Sensing pain is not a prerequisite for consciousness. We do not even know if having any senses is - though complete lack thereof will cause problems with detecting consciousness. Due to lack of response.
The intriguing part here is to consider if a person in a sensory deprivation apparatus is actually conscious.