Electroreception is the ability of some fish, such as sharks and rays, to detect electrical fields produced by other animals, allowing them to locate prey even in murky waters.