In robotics projects there are needs to detect obstacle such as a wall. The famous Roomba, for instance, has wall sensors that detects obstacles and thus prevents it