mySwitch.available returns false but the receiver seems to be working?

I have been trying to receive JUST A SIGNAL with 2 different rf receivers both my remotes and the receiver run on 433mhz but it just doesnt work i dont have some wrong wiring too. I tryed to see if the receiver is working by putting and led to data pins and when i use the remote i get a blink (you can see it on the video) and the code looks like this;
Hardware: Arduino Uno, 433MHZ RF receiver
Connecting done as the code example suggests.

/*
  Example for receiving
  
  https://github.com/sui77/rc-switch/
  
  If you want to visualize a telegram copy the raw data and 
  paste it into http://test.sui.li/oszi/
*/

#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(0);  // Receiver on interrupt 0 => that is pin #2
}

void loop() {
  if (mySwitch.available()) {
    output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
    mySwitch.resetAvailable();
  }
}

https://imgur.com/a/Ru6QGhg

Please read the pinned post on how to get the most from the forum.

Can it be from the remote i'm using? The remote looks like this.

Tested with the transmitter it came with it the receiver succesfully received the signal.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.