Inserting IR sensor code into existing project

Yes sir. I would like to turn on those two Reds and turn off the others regardless of the push button count.

The all red condition would only activate when the IR sensor detects an obstacle. As soon as the sensor is clear the LEDs can go back to their original indication.

Here are the IR sensors I purchased:

HiLetgo 10pcs IR Infrared Obstacle Avoidance Sensor Module for Arduino Smart Car Robot 3-Wire Reflective Photoelectric for Arduino Smart Car Robot Amazon.com

Thanks!
Kennedy