Post the code that you're using. You don't have to post the library code, if the library is not available in the Library Manager of the IDE, post a link.
And post a wiring diagram as you probably get the same error message if the sensor is not connected at all.