NRF24l01 search free channel

For a new project, I have multiples NRF24l01 modules, each are attached to an uno. But they work in pairs. So each pair has an own channel to communicate.

I'm looking for a "scanner" that checks for the first free channel and set this one the the uno. Wjen I add a new coupe of devices, it should be checking again for the next free channel, and so on...

can anyone help me with this?