Barnsley will visit fellow Championship club Middlesbrough in the second round of the EFL Cup on September 15 or 16.
Boro are managed by former Reds winger Neil Warnock and are due to welcome them in the league on October 3.
The draw for the third round has also been made, with the Reds going to Premier League Chelsea should they win at the Riverside Stadium.
Gerhard Struber's team won 1-0 at home to Nottingham Forest in their first game of the season yesterday.
Got a Story? - 01226 734262
Reds to visit Middlesbrough in next cup round
Another pup killed by dangerous dog Is Beryl county's oldest landlady? Arthur seen off in style Town’s Covid hotspots revealed Woman appeals for help in finding watch’s owner MPs’ annual expenses revealed Quad-riding yobs cause chaos at golf club Police reopen murdered woman’s case on 30th anniversary Forces join to support hungry kids M1 closed in both directions after lorry fire