Ported my DHT12 and AM2320 I2C temperature and humidity sensor libraries to the micro:bit.
Only minor differences with the I2C read/write methods.
micro:bit:
https://github.com/mcauser/microbit-dht12
https://github.com/mcauser/microbit-am2320
ESP8266, Pyboard:
https://github.com/mcauser/micropython-dht12
https://github.com/mcauser/micropython-am2320