line follower

hello,
i need help to make the line follower work
i use this model

this is the code but it just for serial monitor
int signalPin = 3; // connected to digital pin 3
void setup() {
pinMode(signalPin, INPUT); // initialize the digital pin as an output
Serial.begin(9600); // initialize serial communications at 9600 bps
}

void loop()
{
if(HIGH == digitalRead(signalPin))
Serial.println("black");
else Serial.println("white");
delay(1000);
}

i need to drive DC motor

400px-Grovelinefinder1.jpg

Capture.JPG

line_finder.ino (351 Bytes)

Hi,
Here's a page about Line Follower:
http://arduino-info.wikispaces.com/Robot+7-wayMultiTrackingSensor

Maybe that will help. It has that same reflective IR sensor, just more of them..

thanks