Some ACs have UART interfaces inside that can be fairly easily hooked up to an esp32.

You could also buy an IR transmitter module from AliExpress and add a temperature/humidity sensor chip on I2C like an SHT41.