implemented color sensor reading (color mode)