add basic colorsensor and capsensor function