…
//Switching on white light required for sensing opaque objects
//Note: Comment the next three lines of code if the source of color is light
 LED_R_SetHigh();
 LED_G_SetHigh();
 LED_B_SetHigh();
…