Help understanding when to use resistors

Thanks very much for the pointers.

Might I just given an example, to help explain?

I have connected my Uno to a DHT11 temperature and humidity sensor.

I have read the spec sheet and the component gives little more than it is digital and can work at voltages from 3.3v to 5v.

Ultimately, do I need to use a resistor here?