I would mount the unit on a servo that rotates the sensor to the left side, takes a reading, rotates the sensor to the middle, takes a reading, rotates the sensor to the right side, takes a reading, then determines what action to take based on the data it just collected from the three readings. Then continuously repeat the process.