adding a delay to the color sensor