Multiple outcomes in an if statement

Hi all. I have been tinkering with Arduino and tried making my own robot. I was having trouble with the ultrasonic sensor (It would work inside but not outside. I think because it wasn't getting a return on the ping) So I changed it to have a left and right hand facing Laser distance sensor set to about a meter. This works perfectly however my goal is to activate a similar left and right facing set of PIR sensors to determine whether the object is a person or inanimate object. The PIR sensors are on npn transistors as a switch so I can eliminate the 8 second cooldown of the sensors.

My question is, how can I add a second set of variables in the if statement to check the pir sensors and react differently to an animte verses inanimate object?

I am a newbie, having picked up a little from the interweb so programming examples need to be very precise please.

New_Robot.ino (7.11 KB)

   //this is where the PIR sensors would come in
switch (digitalRead(38)) {
case 0:
//do this...
break;
case 1:
//do this...
break;
}

What signal did you get from the PIR? is it just 0&1 ?

Yes it is a high/low situation
Thanks brother. This looks like a way forward

Max_Beginner:

   //this is where the PIR sensors would come in

switch (digitalRead(38)) {
case 0:
//do this...
break;
case 1:
//do this...
break;
}

Unless you are expecting values other than LOW and HIGH the traditional way to act on a true/false value is:

//this is where the PIR sensors would come in
  if (digitalRead(38)) {
    //do this if true/HIGH/1...
  } else {
    //do this if false/LOW/0...
  }