# DHT22 and micro:bit V2

**URL:** <https://forum.makecode.com/t/dht22-and-micro-bit-v2/46345>\
**Category:** micro:bit extensions\
**Created:** [October 6, 2026, 9:57pm UTC](https://forum.makecode.com/t/dht22-and-micro-bit-v2/46345 "2026-10-06T21:57:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SIdani](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SIdani](https://forum.makecode.com/u/SIdani)\
**Post date:** [October 6, 2026, 9:57pm UTC](https://forum.makecode.com/t/dht22-and-micro-bit-v2/46345/1 "2026-10-06T21:57:51Z")

</div>

Hello,

I still haven’t found a solution for using a **micro:bit V2** with the **DHT22** sensor. As far as I can tell from my testing, readings with **MakeCode** still do not work.

Has anyone found a solution to this issue? Or am I doing something wrong?

I have tested the following example: [https://makecode.microbit.org/S32634-23373-77321-41869](https://makecode.microbit.org/S32634-23373-77321-41869)

Even Copilot indicates that the libraries are up to date, but it still does not work. The same sensors work correctly on a **micro:bit V1**.

Thank you.

---

<div class="post-metadata">

**Author:** ![Don](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/don/32/17989_2.png) [@Don](https://forum.makecode.com/u/Don)\
**Post date:** [October 7, 2026, 5:02pm UTC](https://forum.makecode.com/t/dht22-and-micro-bit-v2/46345/2 "2026-10-07T17:02:54Z")

</div>

It looks like you are using blocks based on an older version [https://github.com/MonadnockSystems/pxt-dht11](https://github.com/MonadnockSystems/pxt-dht11). Have you tried the original?

---

<div class="post-metadata">

**Author:** ![SIdani](https://avatars.discourse-cdn.com/v4/letter/s/e47774/32.png) [@SIdani](https://forum.makecode.com/u/SIdani)\
**Post date:** [October 9, 2026, 3:16pm UTC](https://forum.makecode.com/t/dht22-and-micro-bit-v2/46345/3 "2026-10-09T15:16:59Z")

</div>

Thank you, Don.

I am using **MakeCode** , which is up to date, and I am using the latest extension available.

I tried the link you provided, but I only have a bunch of DHT22 sensors.

What I don’t understand is how it could be based on an old version if it’s a web-based tool that is supposed to be current and up to date.

Am I missing something?
