Added function in colorsensor to detect RED