# Stuck with the tcs34725 color sensor with Arduino and processing

**URL:** <https://discourse.processing.org/t/stuck-with-the-tcs34725-color-sensor-with-arduino-and-processing/19580>\
**Category:** Processing for Pi\
**Created:** [April 9, 2020, 12:20pm UTC](https://discourse.processing.org/t/stuck-with-the-tcs34725-color-sensor-with-arduino-and-processing/19580 "2020-04-09T12:20:32Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [April 10, 2020, 10:07am UTC](https://discourse.processing.org/t/stuck-with-the-tcs34725-color-sensor-with-arduino-and-processing/19580/21 "2020-04-10T10:07:33Z")

</div>

> [@Designer\_Girl](#):
>
> float C = map(i, 0, 10000, 0, 500); println("map: ", i, C);

That should be outside of the loop.

Remember you are mapping Color K to numDrops (number of raindrops).

[Previous page](https://discourse.processing.org/t/stuck-with-the-tcs34725-color-sensor-with-arduino-and-processing/19580.md?page=1)
