I search a distance sensor that works behind dark glass. I found ToF sensor, infrared sensor, but they can not work regularly behind dark glass and the distance can decrease.
I want a sensor that measures a distance of aprrox. 30 cm ~ 100cm from through the dark glass, but it must be work correctly.
I have used various Pololu TOF sensors on various projects for different distances
not sure from behind dark glass though
maybe worth contacting Pololu for advice
So much depends on what makes the glass dark. If an automobile window, they are darkened using tin particles and are very poor for allowing any RF signal to pass thru, so any microwave TOF sensor will not work. Same reason any IR sensor will not work.
I think any distance sensor will have to be used NOT through the dark glass.
An open question with "seeing through dark glass" in mind... What makes vision possible? Is there a sensor that uses the visible spectrum? The spectrum outside IR and UV fail, but eyes see through dark glass. Is distance-measuring LASER a "v(isible) s(pectrum)" sensor? I realize LASERs like to bounce off everything.
Actually proved it. our VW has darkened windows using tin particles. The remote control for the driveway gate will not operate pointed through the glass, but held outside works fined. The truck has plain windows and remote works fine thru the glass.
microwave will be completely reflected back to the emitter.
If we new what the frequencies/wavelength the glass was transparent to, some sensor might be suggested.
OP: in #1 you ask for a 30-100 cm distance sensor, in #7 a motion sensor (no range specified). That are two very different things.
What exactly are you trying to do?
Any optical sensor (ToF or otherwise) may have a hard time sensing through glass due to reflections and loss of signal, even if that glass is transparent for its wavelength, usually IR - you must have noticed that your IR TV remote control has a dark piece of plastic in front of the IR LED: this does block visible light but is transparent for IR. Your dark glass may or may not be transparent to IR.
If it is, you may try IR based sensors. Otherwise, those microwave based ones may work as they do go through glass and walls and so, but those are just motions sensors, not