APDS-9960 problems behind glass/foil

Hey guys,

I am currently working on a touchless power switch for the medical field, to reduce contamination.

I got everything to work wíth the APDS-9960, it is connected to an attiny85 and a relay and switches that on if the proximity sensor senses anything.

The only problem I have, is to get it work behind a thin 1mm acrylic glass, or even cling film.

Really searched since weeks and can’t find a solution, so I would be really happy if any of you guys could help me or send a link with informations that I missed.

You’re going to need thin glass that’s transparent to IR light, the data sheet recommends dark glass and I’d take that to mean it should block most visible light. You probably also have to put the sensor directly against the glass for it to work as well.

The data sheet also mentions adjusting the LEDBOOST bit to compensate for the glass. Don’t know if sparkfun’s library has that functionality though so you might have to write a bit of code to make adjustments outside the library.