Create obstacle.c

To read the sensor values and avoid obstacles