Safety devices for obstacle detection