#pragma config(Sensor, S1, barevny, sensorEV3_Color, modeEV3Color_Ambient) //*!!Code automatically generated by 'ROBOTC' configuration wizard !!*// task main() { while (true) { if (getColorAmbient(barevny) < 80) { motor[motorA] = ((getColorAmbient(barevny) - 100) * (-1)); } else { motor[motorA] = 0; } } }