# I need help with using a color sensor on my microbit

**URL:** <https://forum.makecode.com/t/i-need-help-with-using-a-color-sensor-on-my-microbit/21161>\
**Category:** micro:bit\
**Created:** [July 10, 2023, 4:45pm UTC](https://forum.makecode.com/t/i-need-help-with-using-a-color-sensor-on-my-microbit/21161 "2023-07-10T16:45:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kacky](https://avatars.discourse-cdn.com/v4/letter/k/ba9def/32.png) [@Kacky](https://forum.makecode.com/u/Kacky)\
**Post date:** [July 10, 2023, 4:45pm UTC](https://forum.makecode.com/t/i-need-help-with-using-a-color-sensor-on-my-microbit/21161/1 "2023-07-10T16:45:15Z")

</div>

Hi. I would like to use a tsc34725 color sensor on my Microbit; however, I can find any extension for the color sensor. How will I be able to use it on my Microbit?

Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [July 10, 2023, 9:24pm UTC](https://forum.makecode.com/t/i-need-help-with-using-a-color-sensor-on-my-microbit/21161/2 "2023-07-10T21:24:50Z")

</div>

It appears as if the TSC34725 uses I2C to communicate. You could look at one of the existing extensions that use I2C for the micro:bit and rewrite it for the color sensor. Adafruit used to sell this color sensor, so they have a [guide](https://learn.adafruit.com/adafruit-color-sensors/overview) on it which links to Arduino-based and CircuitPython based libraries which you can port to MakeCode for micro:bit.

---

<div class="post-metadata">

**Author:** ![bsiever](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bsiever/32/1032_2.png) [@bsiever](https://forum.makecode.com/u/bsiever)\
**Post date:** [July 11, 2023, 4:58pm UTC](https://forum.makecode.com/t/i-need-help-with-using-a-color-sensor-on-my-microbit/21161/3 "2023-07-11T16:58:33Z")

</div>

Hi @Kacky — welcome to the forum.

You might want to search the forum for other people using the sensor. For example:

- @frank_schmidt has posted a video showing an example: [Video:Color Sensor RGB with Micro:bit and LED Color Display](https://forum.makecode.com/t/video-color-sensor-rgb-with-micro-bit-and-led-color-display/9664) .
- It looks like someone created an extension to support it: [https://github.com/samnied/pxt-tcs34725](https://github.com/samnied/pxt-tcs34725) (Thanks to @MKleinSB, who shared the extension in this post: [Micro:bit and external color sensor? - #3 by mathpun](https://forum.makecode.com/t/micro-bit-and-external-color-sensor/15370/3)).
