HOW DO YOU CODE A VISION SENSOR?

HOW DO YOU CODE A VISION SENSOR?

WHY ARE WE YELLING?
please stop the capslock.

What programming language are you using?

Not c++ for professionals.
I am using C++ for vex robotics

The API should be a helpful starting point.

Sorry I am new to robotics what does API stand for?

“Application Programming Interface”
Think of it as a dictionary for your programming syntax.

Look at help.vex.com for some articles such as this:
How to configure the vision sensor in VCS
and this:
VCS Example Program - Clawbot using Vision Sensor

and as mentioned earlier the API reference.

You might find some threads here on VEXforum.com

Good luck!