nRf24l01 master and slave matchup with button

I have an idea to make sensor network using with nRf24l01, i have 2 master and 10 slaves for each masters as different sensors at different places. Each sensor has a adress like ;
AA1C12 (for 1st sensor),
AB2D01(for 2nd sensor),
BA1C13(for 3th sensor)...

This adresses have information of the sensor module like;

A A 1 C 1 2
Master 1 Tempreature Sens. Area Serial Number of Sensor

When i turn on sensor modul and press a button on master, master start to searching adress of new module like;
AA1A01
AA1A02
.
.
.
AA1B01
.
.
.
BD5D15.

When it get communicate with new sensor modul, it stops and Write that adress to EEPROM. Could you help me for that code.

btrb:
Could you help me for that code.

We are not going to write the code for you, but we will help if you get stuck.

Post the code that represents your best attempt and tell us exactly what it does and what you want it to do that is different.

I wonder could you turn the process on its head and put the addresses of the two masters into the code for each slave and when turned on a slave tries both master addresses until it gets a response?

...R
Simple nRF24L01+ Tutorial