Smart Home Automation Forum
[arduino code examples for MT4v2]-07 RF433MHz wireless recevier decode - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=114)
+--- Forum: MT4v2 (https://www.kincony.com/forum/forumdisplay.php?fid=120)
+--- Thread: [arduino code examples for MT4v2]-07 RF433MHz wireless recevier decode (/showthread.php?tid=9885)



[arduino code examples for MT4v2]-07 RF433MHz wireless recevier decode - admin - 10-20-2026

Code:
#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(9600);
  mySwitch.enableReceive(digitalPinToInterrupt(14));
  Serial.print("begin test");
}

void loop() {
  if (mySwitch.available()) {
   
    Serial.print("Received ");
    Serial.print( mySwitch.getReceivedValue() );
    Serial.print(" / ");
    Serial.print( mySwitch.getReceivedBitlength() );
    Serial.print("bit ");
    Serial.print("Protocol: ");
    Serial.println( mySwitch.getReceivedProtocol() );

    mySwitch.resetAvailable();
  }
}
arduino ino file download:

.zip   7-RF-433M-receiver.zip (Size: 417 bytes / Downloads: 7)
BIN file (you can use esp32 download tool download to ESP32-S3 with address 0x0 then directly to use) download: 

.zip   7-RF-433M-receiver.ino.merged.zip (Size: 181.95 KB / Downloads: 6)