Hi kuseetha welcome to the arduino user-forum,
did you do a test if your nRF24-modules are working with a demo-code that is well know for working? Anything that goes beyond a simple LED should be first tested with a working demo-code.
Robin2 has some demo-codes
Introduction
The nRF24L01+ 2.4GHz transceiver modules are cheap and very effective but I have come across a few Threads in which people were having trouble with them so I thought it might be useful to gather together in one place a basic step-by-step sequence for getting them to work.
EDIT 03 Feb 2021 - For this Tutorial install Version 1.1.7 of the RF24 library (available with the Arduino Library Manager). More information in Reply #30.
Edit 29 Aug 2016. I have today downloaded and successfu…
best regards Stefan