Block the return wave of ultrasonic sensor

So you want to distinguish between a limb and any other object? IR detector will do this through body-warmth.