Use IR sensor to check distance between edge of frame and wall during turn to prevent crash if turn starts too early