Error using Temperature and Humidity sensor v1.2

My apologies, I’m having an error with the sunlight sensor v1.0, the above code was used with this sensor and the error message above was received.