You can use this solution.
I use this with attiny84 and attiny84A, for temperature sensor and opening sensor.
Best posts made by alb12
Latest posts made by alb12
NRF24L01 & HLK-pm01
I have made a PCB for a relay with nrf24L01, attiny and HLK-PM01.
If I feed the pcb with the arduino, with 3v or 5v I have no problem, the relay switches but when the PCB feed whith the electric outlet the relay don't switch always.
I don't know what, maybe the radio signal of nrf24 dont received.
Have you an idea?