super simple example use of dht12 temperature humidity sensor on the esp8266 port of micropython i used the lolin esp8266 D1 mini pro board and the dht12 shield the shield also allows you to use one wire interface by soldering the jumper at the back
lolin also stock a handy i2c cable allowing the sensor to be positioned away from the (heat producing) chips
dht12 library module is from Mike I think