DHT11 sensor update time

Can you help me how to set update time of DHT11. My sensor update time is random and i want set it for 5 seconds.

Thanks!

A minimum of 30 second updates are coded into the component. See line 32: https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/sensor/dht.py

How can i set maximum time between 2 updates?

You would have to create a custom component.