From the Google translation of the comments, it appears that you are writing a line-following robot. I'm guessing that there are light sensors connect to six analog inputs. You should be reading the analog inputs (analogRead(pin)) and comparing that value to some threshold (analogRead(pin) > threshold).
Something like this but with more motors and more sensors:
https://forum.arduino.cc/index.php?topic=64006.0
void seguirlinha () {
if {csM1 = csM2 && (FORWARD);} // if both are equal to black then move forward
if {csE2 = csM1 && motor1.run (FORWARD); motor2.run (BACKWARD); motor3.run (FORWARD); motor4.run (BACKWARD);} // if both are equal to black (when one should be white) turn left
if {csD1 = csM2 && motor1.run (BACKWARD); motor2.run (FORWARD); motor3.run (BACKWARD); motor4.run (FORWARD);} // if both are equal to black (when one should be white) curve right
if {csM1, csM2 = csD1, csD2 && delay (1000); (FORWARD); delay (1000); motor1.run (FORWARD); motor2.run (BACKWARD); motor3.run (FORWARD); motor4.run (BACKWARD);} // if they are equal to black (when two should be equal to white) walk 0.5 cm and turn left
if {csE1, csE2 = csM1, csM2 && delay (1000); (FORWARD); delay (1000); motor1.run (BACKWARD); motor2.run (FORWARD); motor3.run (BACKWARD); motor4.run (FORWARD);} // if they are equal to black (when two should be equal to white) walk 0.5 cm and turn right
if {csE1, csE2, csD1, csD2 = csM1, csM2 && (FORWARD);} // if all are equal to black (when some should be white) then move forward
if {csEI, csE2 = scD1, csD2 && (FORWARD);} // if all are equal to white, move forward
}