i need help in timer and keeping signal on

How to keep signal as On

function:
Sensor sense object and Sensorvalue<100
Motor move backward for 10 sec (continue moving although Sensor did not sense object and go more than 100)

I am stuck can help me or hint to how to start

int motorright= 2;
int motorleft= 3;
int Sensor = A1;
float Sensorvalue;
unsigned time;

void setup() 
{
  pinMode(motorright,OUTPUT);
  pinMode(motorleft,OUTPUT);
  pinMode(Sensor,INPUT);

}

void loop()
{ 
int Sensorvalue = analogRead(Sensor);
if (Sensorvalue <=100) // there is object
 {
   digitalwrite(motorright, HIGH);
   digitalwrite(motorleft, HIGH);
 }

How to keep signal as On

Easy. Don't turn it Off.

int Sensorvalue  = 0;
float Sensorvalue;

That code will not compile. Quit wasting our time posting code that can't be compiled.

PaulS:
Easy. Don't turn it Off.

int Sensorvalue  = 0;

float Sensorvalue;



That code will not compile. Quit wasting our time posting code that can't be compiled.

opps I edited out that part now is compile

You have pins called 'motorleft' and 'motorright'. What combination of signals makes the motor go 'backward'? What combination of signals makes the motor stop?