Expected unqualified-id before '.' token (DHT11)

You forgot to initialize an instance for your DHT sensor: see how I inserted the
line 'DHT dht(DHTPIN, DHTTYPE); '^above in the excerpt of your code

1 Like