Measuring the distance on a nrf24l01 module using leds? [Solved]

Hello does anyone know of a way i can measure the distance on the nrf24 module using led to have a green one meaning got signal and a red led if no signal?

I did it i found the rx and tx sketch in the mesh network instead of printing out failed or ok in the transmit i change it to led on and off.