IR and Ultrasonic

is it possible to connect GP2Y0A21YK0F ir sensor as a obstacle avoiding and SRF005 as motion detection? btw im using picaxe28x

You could use them both in
You could use them both in either of those ways if you wanted to… they do the same thing only different method and pitfalls.