433 MHz RF Transmitter - Read from Data PIN

Hi Team,

I am able to successfully send the binaries from RF transmitter using below code but at the same time, I want to read the data from RF transmitter data PIN to see what data it is sending on serial monitor.
Can someone help??

I think digitalread function is to read only 0 or 1 but I want to read the total string coming from that data pin or tx pin of arduino

 /*
  Example for different sending methods
  
  https://github.com/sui77/rc-switch/
  
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
    // Transmitter is connected to Arduino Pin #10  
  mySwitch.enableTransmit(13);
  
}

void loop() {

  mySwitch.send("000000000001010100010001");
  delay(1000);  
  mySwitch.send("000000000001010100010100");
  delay(1000);
  long read= digitalRead(13);
    pinMode(read,INPUT);
  Serial.print(read);
}
  long read= digitalRead(13);

RTFM. digitalRead() returns HIGH (1) or LOW (0). There is no excuse for storing that one bit in a 32 bit variable.

Now, a long long, that would be a different story.

If mySwitch.send() diddles the output pin, don't you suppose that there just might be some corresponding method to deal with the input pin being diddled with? Why do you think that you need to re-invent the wheel?

The RC-switch library just sets the output pin to produce pulses of diifferent lengths. All the information you need is in the library code.

long read=digitalread(13) is not reading the full binary 000000000001010100010100

i just want to see is there any possiblity to read the signal

digitalRead() returns 1 or 0, if HIGH or LOW is present on the pin during the read cycle.

YES BUT there should be some wqy to use RF transmitter data pin as input to read the binary string

Of course there is, but it is way beyond your present understanding.

And, doing so is completely unnecessary.

If you are dead set on seeing the data stream, simply connect an oscilloscope probe or logical analyzer to the output.

I am security analyst trying to intercept RF data 4-5 ways.

  1. SDR
  2. RF RECEIVER
  3. BRUTE FORCING

I AM SUCCESSFUL WITH ABOVE THREE BUT TRYING TO HACK USING PHYSCIAL APPROACH BY interchanging pins\adding input pins

GOOD TO KNOW, THANKS VERY MUCH!