# Spectral Triad (AS7265x), Is there a way to filter out high light conditions?

**URL:** <https://community.sparkfun.com/t/spectral-triad-as7265x-is-there-a-way-to-filter-out-high-light-conditions/42263>\
**Category:** Imaging\
**Created:** [June 8, 2021, 7:40pm UTC](https://community.sparkfun.com/t/spectral-triad-as7265x-is-there-a-way-to-filter-out-high-light-conditions/42263 "2021-06-08T19:40:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ben\_W](https://avatars.discourse-cdn.com/v4/letter/b/b782af/32.png) [@Ben\_W](https://community.sparkfun.com/u/Ben_W)\
**Post date:** [June 8, 2021, 7:40pm UTC](https://community.sparkfun.com/t/spectral-triad-as7265x-is-there-a-way-to-filter-out-high-light-conditions/42263/1 "2021-06-08T19:40:12Z")

</div>

I’m new to this sensor so forgive my ignorance. For the Spectral Triad: [https://www.sparkfun.com/products/15050](https://www.sparkfun.com/products/15050) is there a way to filter out high light conditions? For instance when I measure two similarly colored objects in direct sunlight and in shade the readings are obviously very different. Does the gain setting affect this?

---

<div class="post-metadata">

**Author:** ![TS-Russell](https://yyz1.discourse-cdn.com/sparkfun/user_avatar/community.sparkfun.com/ts-russell/32/6092_2.png) [@TS-Russell](https://community.sparkfun.com/u/TS-Russell)\
**Post date:** [June 8, 2021, 7:50pm UTC](https://community.sparkfun.com/t/spectral-triad-as7265x-is-there-a-way-to-filter-out-high-light-conditions/42263/2 "2021-06-08T19:50:07Z")

</div>

Yes, the gain setting will change how the data is compared to the calibration. Be sure to go through each example in the hookup guide [https://learn.sparkfun.com/tutorials/sp … y-overview](https://learn.sparkfun.com/tutorials/spectral-triad-as7265x-hookup-guide?_ga=2.37392160.1207987095.1623077711-1853259630.1615791300#as7265x-arduino-library-overview) , especially example 3 - Settings, where the gain settings are adjustable.

It looks like the default gain is 16x…you might create some code where it has a low-ight mode utilizing 16x and try the 3.7x or 1x for the high-light condition?
