Exercise 2 and 3 teach you that program work only one time. In exercise one you used forever loop, and panda shows the readings up to date. So add this loop. This time leds changes colour depending of distance.