They are mostly sensory, it aids them in hunting and eating.
Sight is our most important sense. However, most spiders have very poor eyesight and many are active during the dark night hours. With a few notable exceptions, their sense of the world is obtained through specialised sensory hairs and pit-like sense organs in the cuticle. These hair and pit sensillae are especially associated with the spider's limbs and mouthparts. Connected at their bases to sensory nerves, they provide spiders with the sensory experience and feedback needed to survive and function in their world.