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)