task main () { SetSensor(SENSOR_1, SENSOR_LIGHT); while (true){ if (SENSOR_1 >50) { OnFwd(OUT_A+OUT_C); } else {OnFwd(OUT_A); OnRev(OUT_C); } } }