Ray can't detect sensor objects?
Sensors are not detectable via ray detection. 

Typically sensors sense other objects rather then being detected.

Workaround:
Add another object that fills the sensor object. Give it a physics type that can be sensed via ray. Parent it to the sensor (or the other way around). Ensure your sensor ignores this object. This way the ray can detect the new object.