Help with coding - toggling an LED strip

Hello!
I am trying to write a programme that would make LED strips toggle (sensor detects sth=on, the light stays on and when movement is detected again it turns off and stays on etc.). I am going to be using a simple PIR sensor. So far I have found a code that toggles with a button and I was trying to make it work with a sensor. First of all, I am not sure if this will work at all (what i did was mapping the sensors values so they will be zero-one and then easily edited the button code). Second of all, an error appears.

The error:
digitalRead(inPin) = map(1,minval,maxval,0,1)
^
exit status 1
lvalue required as left operand of assignment

The code I have so far:

int inPin = A0; // the number of the input pin
int outPin = 10; // the number of the output pin

int state = HIGH; // the current state of the output pin
int reading; // the current reading from the input pin
int previous = LOW; // the previous reading from the input pin

// the follow variables are long's because the time, measured in miliseconds,
// will quickly become a bigger number than can be stored in an int.
long time = 0; // the last time the output pin was toggled
long debounce = 200; // the debounce time, increase if the output flickers
int minval;//= the minimal value of the sensor)
int maxval; //= maximum value of the sensor)

void setup()
{
pinMode(inPin, INPUT);
pinMode(outPin, OUTPUT);
}

void loop()
{
digitalRead(inPin) = map(1,minval,maxval,0,1)
reading = digitalRead(inPin);

// if the input just went from LOW and HIGH and we've waited long enough
// to ignore any noise on the circuit, toggle the output pin and remember
// the time
if (reading == 1 && previous == 0 && millis() - time > debounce) {
if (state == HIGH)
state = LOW;
else
state = HIGH;

time = millis();
}

digitalWrite(outPin, state);

previous = reading;
}

All help appreciated!! Thank you!!

I think you meant to do this:

  reading = analogRead(inPin);
  reading = map(reading, minval, maxval, 0, 1);

A digitalRead() would only return HIGH or LOW, but you are reading an analog pin.

You are using PIR sensor, so why you r using analog input pin? you have to detect movement (1 or 0) and digital input is good to do this job.

digitalRead(inPin) = map(1,minval,maxval,0,1)

This line of code tries to assign a value to the digitalRead() function, which is impossible, hence the error message

lvalue required as left operand of assignment