For our 2020 robot for infinite recharge, we are looking at utilizing an IR Sensor connected to the DIO ports of the roborio and we are unsure of the means of programming this sensor so when a ball is detected within a certain range, it would activate our shooter.
We are using this sensor: https://www.amazon.com/Adafruit-Accessories-Break-Beam-Sensor/dp/B01BU6YBWU