DIGITAL RAY SENSOR