This is kind of an analogy of an obstacle avoider circuit...
The difference over here is I just used two leds in place of a motor( which is not available)...
And the sensors are the logic inputs which we can handle... So assuming it detects something just change the logic of one input .. and the rest follows with what happens to the led