Send infrared raw signal to air conditioning using Arduino

No experience there, but I read that AC codes are longer than normal.

//#define RAWBUF 255

Did you comment that out?

Read this.
https://forum.arduino.cc/index.php?topic=418106.0

Leo..