How animals sense danger