i'm no pro, and havnt even started a project, but do know programming. this may not be the best method, but could work.
idea:
make 4 sensors (plains, 1x1) for the enemy, 1 infront, 1 to left, 1 to right, 1 to back. make them limbs. offset them to a distance you like. use intersect object to detect the walls.
so if there is a wall infront have him move left or right, if theres a wall infront and on left, have him move right, etc.
like i said, possible not the best, but would work. sorry if this method is completly....a waste of coding.
RAWR!