RGB digital fiber optic sensor