Reading a DHT11 device is not easy and would require some custom code. I recommend that you use instead a SHT-31 or similar I2c device to measure temperature and use the standard I2C library in Micropython for Digi. Here is sample code to read an I2C device.
https://www.digi.com/resources/documentation/digidocs/90002219/default.htm#reference/r_sample_program.htm?Highlight=I2C