# Makecode Ev3 Brick with nxt sensors

**URL:** https://forum.makecode.com/t/makecode-ev3-brick-with-nxt-sensors/600
**Category:** EV3
**Created:** [October 9, 2019, 8:16pm UTC](https://forum.makecode.com/t/makecode-ev3-brick-with-nxt-sensors/600 "2019-10-09T20:16:57Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![RasPiBot](https://avatars.discourse-cdn.com/v4/letter/r/3ec8ea/32.png) [@RasPiBot](https://forum.makecode.com/u/RasPiBot)
#### Post date: [October 9, 2019, 8:16pm UTC](https://forum.makecode.com/t/makecode-ev3-brick-with-nxt-sensors/600/1 "2019-10-09T20:16:57Z")

</div>

Hello MakeCode community,

I’m a computer science teacher. This year, we are using MakeCode for the first time. During the last 10 years, we used Lejos, Mindsqualls and Monobrick. We switched for MakeCode because of the JavaScript.

Here is my problem, we have 24 EV3 bricks with NXT sensors and motors. We only upgraded our bricks since the motors and sensor were still working fine. Unfortunately, NXT sensors don’t work with MakeCode. The motors are working perfectly with the ev3 brick.

Is it a documented bug? My code is working in the simulator.

Thanks for your help,

Shany

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [October 9, 2019, 8:44pm UTC](https://forum.makecode.com/t/makecode-ev3-brick-with-nxt-sensors/600/2 "2019-10-09T20:44:15Z")

</div>

We do not have official support for the NXT sensors. It seems that those are either analog or I2C sensors but we haven’t done any work to support them.

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [October 9, 2019, 8:46pm UTC](https://forum.makecode.com/t/makecode-ev3-brick-with-nxt-sensors/600/3 "2019-10-09T20:46:30Z")

</div>

Which sensor do you have?

---

<div class="post-metadata">

### Author: ![objer](https://avatars.discourse-cdn.com/v4/letter/o/54ee81/32.png) [@objer](https://forum.makecode.com/u/objer)
#### Post date: [November 15, 2019, 7:32pm UTC](https://forum.makecode.com/t/makecode-ev3-brick-with-nxt-sensors/600/4 "2019-11-15T19:32:41Z")

</div>

I’ve the same problem. I need HiTechnic Color sensor V2 for makecode.  
Could you help me?

---

<div class="post-metadata">

### Author: ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)
#### Post date: [November 15, 2019, 7:44pm UTC](https://forum.makecode.com/t/makecode-ev3-brick-with-nxt-sensors/600/5 "2019-11-15T19:44:57Z")

</div>

We do not have cycles planned to support these sensors for now. Support for generic I2C sensors we added previously, so it should be possible to support those (either i2c or analog). Probably not before a few months.

---

<div class="post-metadata">

### Author: ![objer](https://avatars.discourse-cdn.com/v4/letter/o/54ee81/32.png) [@objer](https://forum.makecode.com/u/objer)
#### Post date: [November 16, 2019, 3:31am UTC](https://forum.makecode.com/t/makecode-ev3-brick-with-nxt-sensors/600/6 "2019-11-16T03:31:56Z")

</div>

Thank you.  
Look like good. Could you have reference to Support for generic I2C sensors in a document.

---

<div class="post-metadata">

### Author: ![THEb0nny](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theb0nny/32/3500_2.png) [@THEb0nny](https://forum.makecode.com/u/THEb0nny)
#### Post date: [September 1, 2026, 8:33pm UTC](https://forum.makecode.com/t/makecode-ev3-brick-with-nxt-sensors/600/7 "2026-09-01T20:33:30Z")

</div>

The HiTechnic Color Sensor v2 is currently supported in MakeCode via an extension, but the source code is outdated. I’ve developed a full-fledged extension for the BrickCode fork.

> **[GitHub - THEb0nny/makecode-ev3-hitechnic-color-sensor-v2: HiTechnic Color Sensor v2 support enhancement for...](https://github.com/THEb0nny/makecode-ev3-hitechnic-color-sensor-v2/)**
>
> HiTechnic Color Sensor v2 support enhancement for MakeCode EV3

BrickCode now supports LEGO NXT Touch and Sound Sensor. They are added in extensions.

> **[BrickCode for EV3](https://beta.brickcode.org/)**
>
> Community-maintained fork of the MakeCode Blocks / JavaScript code editor for the LEGO® MINDSTORMS® Education EV3.

I plan to add all the LEGO NXT sensors. Also, an ultrasonic sensor. A temperature sensor. I don’t have a color sensor yet. I know there’s an IR sensor, but I don’t think I’ll be able to find it.

I’m also planning to create extensions to support HiTechnic sensors: compass, barometer, IR, and gyroscope. I have them already. I also have an EOPD sensor, but the EV3 itself, as far as I understand, doesn’t work with it. It switches off and on even in PortView, meaning the system doesn’t recognize it.
