I would like to ask if you can guide me. I want to make my Toshiba Air Conditioner switch on and off during sleeptime to keep temperature fresh during the summer. That's why I bought Arduino Mega, dht11 (which was mistake, I've shoult take dht22), IR Receiver and IR Transmitter.
I do have the original remote control, as well as an Xiaomi home app on my Galaxy S4. I can control my AIR condition with both devices.
The problem is obvious, I can't make the aircon power on and off. I have not a single success

Original Remote Control
Power off
Raw: (295) 4388, -4340, 532, -1648, 508, -1652, 508, -1652, 504, -1652, 508, -572, 508, -572, 508, -1652, 516, -564, 508, -568, 508, -572, 508, -572, 508, -572, 532, -1624, 508, -1652, 508, -572, 504, -1652, 508, -572, 508, -572, 508, -572, 508, -572, 508, -568, 508, -572, 508, -1652, 508, -1648, 508, -1652, 508, -1652, 508, -1652, 504, -1652, 508, -1652, 508, -1648, 508, -572, 508, -572, 508, -572, 508, -568, 512, -572, 508, -572, 504, -572, 508, -572, 508, -572, 508, -1648, 508, -572, 508, -572, 508, -1652, 508, -572, 508, -568, 508, -572, 508, -572, 508, -572, 508, -572, 508, -1648, 512, -1648, 508, -572, 508, -572, 508, -1648, 508, -1652, 508, -1652, 504, -576, 504, -572, 508, -572, 508, -572, 508, -572, 504, -572, 508, -572, 508, -572, 508, -572, 508, -1652, 508, -568, 508, -572, 508, -572, 508, -1648, 512, -1648, 508, -572, 508, -7492, 4364, -4344, 556, -1624, 508, -1652, 508, -1648, 508, -1652, 508, -572, 508, -572, 508, -1648, 508, -572, 508, -572, 508, -572, 508, -568, 536, -544, 508, -1652, 508, -1648, 512, -568, 512, -1648, 508, -568, 512, -568, 536, -544, 536, -544, 536, -544, 508, -572, 532, -1624, 536, -1624, 536, -1624, 532, -1628, 532, -1624, 536, -1624, 532, -1624, 536, -1624, 532, -548, 508, -572, 504, -572, 536, -544, 536, -544, 508, -572, 532, -544, 536, -544, 536, -544, 536, -1624, 508, -572, 508, -572, 504, -1652, 508, -572, 532, -548, 508, -572, 532, -548, 508, -572, 532, -544, 508, -1652, 508, -1652, 508, -572, 504, -572, 536, -1624, 508, -1648, 536, -1624, 536, -544, 536, -544, 532, -548, 504, -572, 536, -548, 504, -572, 536, -544, 536, -544, 508, -572, 532, -1624, 532, -548, 508, -572, 508, -572, 532, -1624, 508, -1652, 532, -548, 532,
Original Remote Control
Power on, 19 degrees, no swing, manual fan level 2
Raw: (295) 4388, -4364, 508, -1652, 508, -1652, 504, -1652, 512, -1648, 508, -572, 508, -572, 508, -1648, 508, -572, 508, -572, 508, -572, 508, -572, 532, -544, 508, -1652, 508, -1648, 512, -568, 508, -1652, 508, -572, 508, -572, 508, -572, 508, -568, 512, -568, 508, -572, 508, -1652, 508, -1648, 508, -1652, 528, -1632, 508, -1648, 508, -1648, 536, -1624, 512, -1648, 508, -572, 508, -572, 508, -568, 512, -568, 508, -572, 508, -572, 508, -572, 508, -568, 512, -568, 508, -1652, 508, -572, 508, -572, 508, -1648, 512, -568, 508, -572, 536, -544, 508, -572, 508, -568, 512, -568, 508, -1652, 508, -1648, 512, -568, 508, -572, 536, -544, 508, -572, 508, -1648, 508, -576, 504, -572, 508, -572, 508, -572, 508, -568, 512, -544, 536, -568, 508, -572, 508, -572, 508, -1648, 512, -568, 508, -572, 508, -572, 508, -572, 508, -572, 508, -568, 508, -7492, 4364, -4368, 508, -1652, 504, -1652, 508, -1652, 508, -1648, 508, -572, 508, -572, 508, -1652, 504, -572, 508, -572, 508, -548, 536, -568, 508, -572, 508, -1652, 504, -1652, 508, -572, 508, -1648, 512, -568, 508, -572, 508, -572, 508, -572, 508, -572, 508, -568, 508, -1652, 508, -1652, 508, -1652, 504, -1652, 508, -1648, 508, -1652, 508, -1652, 508, -1652, 504, -576, 504, -572, 508, -572, 508, -572, 504, -576, 508, -568, 508, -572, 508, -572, 508, -572, 508, -1624, 532, -576, 508, -568, 508, -1652, 508, -572, 508, -568, 508, -572, 508, -572, 508, -572, 508, -572, 504, -1656, 508, -1648, 508, -572, 508, -572, 508, -568, 508, -572, 508, -1652, 508, -572, 508, -572, 508, -572, 504, -572, 508, -572, 508, -572, 508, -572, 508, -572, 508, -572, 532, -1624, 508, -572, 508, -572, 508, -568, 512, -568, 508, -572, 508, -572, 508,
Samsung s4 IR Mihome App (Xiaomi app) AC Remote
Power off
Raw: (199) 4508, -4528, 524, -1644, 524, -532, 524, -1644, 548, -1620, 524, -532, 524, -532, 548, -1620, 524, -532, 524, -536, 548, -1616, 528, -532, 548, -508, 524, -1644, 524, -1644, 524, -532, 524, -1644, 548, -508, 524, -1644, 524, -1644, 524, -1644, 524, -1640, 524, -536, 524, -1644, 524, -1640, 524, -1644, 524, -560, 500, -532, 548, -508, 524, -536, 520, -1644, 524, -536, 548, -508, 524, -1644, 524, -1644, 524, -1644, 524, -532, 524, -532, 524, -532, 552, -508, 524, -532, 524, -532, 528, -532, 520, -536, 524, -1644, 548, -1616, 528, -1644, 520, -1644, 524, -1644, 548, -5296, 4540, -4524, 524, -1644, 524, -532, 524, -1644, 524, -1644, 524, -532, 540, -516, 524, -1644, 524, -532, 524, -536, 524, -1644, 524, -532, 524, -532, 524, -1644, 524, -1644, 524, -532, 524, -1644, 524, -532, 524, -1644, 524, -1644, 524, -1644, 524, -1644, 524, -532, 524, -1668, 500, -1672, 492, -1644, 528, -532, 524, -532, 524, -532, 524, -536, 520, -1648, 520, -536, 524, -532, 524, -1644, 524, -1644, 524, -1644, 520, -536, 524, -532, 524, -536, 540, -516, 524, -532, 524, -532, 524, -536, 520, -536, 524, -1644, 524, -1644, 524, -1644, 520, -1644, 528, -1640, 524,
Samsung s4 IR Mihome App (Xiaomi app) AC Remote
Power on, 19 degrees, no swing, manual fan level 2
Raw: (199) 4564, -4496, 524, -1644, 548, -512, 524, -1640, 524, -1644, 524, -536, 520, -536, 524, -1644, 524, -532, 524, -532, 524, -1644, 524, -532, 528, -532, 524, -1644, 524, -1640, 524, -536, 524, -1644, 520, -536, 524, -1644, 524, -532, 524, -1644, 524, -1644, 524, -1640, 524, -1644, 524, -1644, 524, -1644, 524, -532, 524, -1644, 524, -536, 520, -536, 524, -532, 524, -532, 524, -536, 524, -532, 524, -532, 524, -1644, 524, -1644, 524, -536, 520, -536, 520, -536, 524, -532, 524, -1644, 524, -1644, 524, -532, 524, -532, 524, -1672, 496, -1644, 524, -1668, 500, -1644, 524, -5344, 4540, -4496, 524, -1644, 524, -560, 500, -1644, 524, -1640, 524, -536, 524, -532, 524, -1644, 524, -532, 524, -532, 524, -1644, 524, -536, 524, -532, 524, -1644, 524, -1644, 524, -532, 548, -1620, 524, -532, 532, -1636, 524, -532, 524, -1644, 524, -1644, 524, -1644, 520, -1648, 524, -1640, 524, -1644, 524, -536, 520, -1644, 524, -536, 520, -536, 524, -532, 524, -532, 552, -508, 524, -532, 524, -536, 520, -1644, 524, -1644, 524, -536, 520, -536, 524, -532, 524, -532, 524, -1644, 524, -1644, 524, -532, 524, -536, 524, -1640, 528, -1640, 524, -1644, 524, -1644, 524,
I've tried to send those signals back, but nothing happens.
Can you, please, give me a clue if I'm doing something wrong?
Or just guide me if I can do the trick. The IR Transmitter has a red light, which blinks, when the sygnal is send, so I defenitely send a signals
Kind and Best Regards