The ampullae of Lorenzini are lined with sensory cells that are connected to the shark's nervous system. These cells are sensitive to changes in the electrical field around the shark, and they can detect even very small changes in the voltage. When the shark detects an electrical field, it will turn its head towards the source of the field and investigate further.
The ampullae of Lorenzini are also used by sharks to navigate their environment. They can detect the electrical fields generated by the Earth's magnetic field, which helps them to stay on course when they are migrating.
The ampullae of Lorenzini are a valuable sensory tool for sharks. They help them to hunt, navigate, and avoid predators.