Set sensor type.
Set a sensor's type, which must be one of the predefined sensor type constants. After changing the type or the mode of a sensor port you must call ResetSensor to give the firmware time to reconfigure the sensor port.