The SetSensorType() command is used to manually set the mode of a specific input port to a specific type of sensor. There are a few instances (sensor calibration, for example) where this command is used to activate/deactive a sensor in the middle of a program, but generally we recommend using the Motors and Sensors Setup to configure the robot's sensors (found under the 'Robot' menu in ROBOTC).
The SensorType command works very similarly, and again is used only in very specific instances; again, unless it's absolutely needed, it's best to configure the robot using the Motors and Sensors setup window instead.
Brief SensorType command description (for the Arduino platform): http://www.robotc.net/wiki/ARDUINO_328_ ... SensorType
Check out our Blog
! And our Facebook page
Need help? Take a look at our Wiki
and our Forums.I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody