In this tutorial we will see how to read the temperature measured by the DTH11 sensor and display it on the micro:bit board.
To complete the mounting we connect:
There are several mounting methods.
Here is the makecode program that reads the temperature measured by the DHT11 sensor.
Note: you must go to Extensions to import the DHT11/DHT22 extension.