Touch can be used for detecting texture.
The skin is richly supplied with nerves that enable the perception of pain, touch, heat, and cold.
Nerves are used to feel texture.
What are nerves used for?

  movement
  Smelling food
  Seeing around you
  To protect the inside of your body
  nervous system
  An object is seen
  To feel things
  animal transport