Octopuses’ arms can detect light
In general, the cephalopod’s sense of where its body is in space is quite poor, so this complex instinctive behavior may act to protect the arms from undetected predators nearby, which may mistake the tips of the octopus’s arms as fish or worms.
That octopus arms react to light has long been known. Its skin is covered in chromatophores, pigment-filled organs that change color when light falls upon them. They are behind the octopus’s color-changing camouflage ability.