sensor pins to arduino GND goes to GND arduino VCC (right) goes to 13 VCC (left) goes to 12 1 goes to 3 2 goes to 4 3 goes to A0 4 goes to A1 5 goes to A2 6 goes to A3 7 goes to A4 8 goes to A5 l298n (motor shield/controller) enable A goes to 5 input 1 goes to 6 input 2 goes to 7 input 3 goes to 8 input 4 goes to 9 enable B goes to 10 PS- Perhaps this is the reason why my sensor QTR-8C does not work since there are some pins that connect to digital pins and others that connect to analog pins.