Sending 433Mhz code triggered by an IR code

i want to switch my 433Mhz sockets on/off by sending an IR code.
I connected a TSOP4838 to receive codes from my remote control
and a generic TX-module for sending the 433 codes.
I was be able to switch LED’s on/off by sending the right IR code in a previous sketch.
If i want to send 433 codes instead of power a LED on, the mySwitch.send isn’t working.


#include <IRremote.h>
#include <RCSwitch.h>

int RECV_PIN = 10;

IRrecv irrecv(RECV_PIN);
RCSwitch mySwitch = RCSwitch();
decode_results results;

void setup()





void loop() {

if (irrecv.decode(&results)) {

Serial.println(results.value, DEC);

if (results.value == 607313426 )


if (results.value == 3197093763)


irrecv.resume(); // Receive the next value



What arduino are you using? You might have a conflict with IR library Timer and PWM needs

thank you for your reply.I use an Arduino Nano.I obtained the timings and codes for sending the 433 codes from
the rc-switch library and sending works like a charme if i test sending with Arduino without IR.
Thanks in advance