Elephants have a keen sense of smell that they use to detect predators and locate food sources. Their sense of smell is highly developed, allowing them to pick up on scents from long distances. When detecting predators, elephants can smell the presence of predators such as lions or hyenas and use this information to avoid potential danger. In terms of finding food sources, elephants use their sense of smell to detect ripe fruits, vegetation, and water sources in their environment. This helps them locate essential resources for their survival in the wild.