Need help with programming humidity sensor

Hello, ...

I need a simple code for a humidity sensor that makes the sensor sense humidity and reports the serial monitor.

the sensor is in this website it has an example code( , which never compiles with me

Thank you,

If you need a library for this you can use this one:

which never compiles with me

You are obviously not chanting the proper prayers while compiling. Perhaps if you posted some code AND the (exact) errors, we could help you learn the proper prayer to chant.

The DHT22 works fine with my lib and sample code, see playground - -

special attention to have a delay between reads ~2 secs