IR transmition forTV is not recognized by the signal receiver

I understood reception and made a device and it succeeded in receiving and knowing hexa numbers
But the transmitter put the code, it does not recognize the Samsung TV, although all the connections are correct, maybe the codes are wrong
I want a radical solution to the problem