I am working on a thermometer and humidity why am i getting this error
This indicates your IDE is missing the "Adafruit Unified Sensor" library as outlined here.

To install it, select "Tools" -> "Manage Libraries" and search for "Adafruit Unified Sensor". You can install the library by selecting it and pressing "Install".