Reading problem from DHT11 sensor

I bought DHT11 temp and humidity sensor, & MQ135 air quality gas sensor
I got codes from internet, But they are not available in js or html
So i cant get a correct reading like humidity is in %
& reading of dht11 is from 0 to 1023.
& that too if dht11 gives reading of both temp or humidity.
Pls help with conversion

HI, I faced the same issue. You have many online code converters. You can use them to convert your code. But they don’t give exact conversion. You have to make some changes.

The best way is to interface it with an Arduino.