On esp8266 in micropython dht_readinto should be imported from machine but it is imported from esp because sys.platform starts with "esp"