Pins and Resistor

I think that it is 38 Khz, but not sure. So, can you correct my code?