Sending a signal to set HIGH to a pin through NRF24L01

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#define led 12

RF24 radio(7, 8); // CE, CSN
const byte address[6] = "00001";


 void setup() {
  pinMode(12, OUTPUT);
  radio.begin();
  radio.openWritingPipe(address);
  radio.setPALevel(RF24_PA_MIN);
  radio.stopListening();
}

void loop()
 {
  delay(5);
 
  if (voltage >3.00) {
    digitalWrite(led, HIGH);
  } 
 }

did i do this right, the last part in the void loop()... is that the proper way to send to the reciever that you want the pin to be set high

There is nothing in that code to send anything via rf24.

The simple rf24 demo tutorial may help you to get started with those radios.