// Create instance of sensors. We are only using one sensor connected to pin 12 PololuQTRSensorsRC qtrrc((unsigned char[]){12}, NUM_SENSORS,TIMEOUT,QTR_NO_EMITTER_PIN); unsigned int sensorValues[NUM_SENSORS]; unsigned int sensorValuesBase[NUM_SENSORS]; unsigned int detect_count[NUM_SENSORS]; // Number of successive times sensor // has detected a drop in value. If // this is greater than trigger_count // then white line detected // Setup pins for SN754410 Motor chip