Here's an example program code that should work with your setup. This program reads the humidity data from the sensor and displays it on the OLED display:
You'll need to install the necessary libraries for this code to work. You can find instructions on how to do that in the library documentation.
This is just a simple example to get you started. Depending on what you want to do with the humidity data, you may need to modify the code to suit your needs.