Automatic AC Temperature Controller using Arduino, DHT11 and IR Blaster

You may just have the case the wrong way round, check the examples for your library.

I would have expected to see:

DHT dht;