Security devices for obstacle detection