i think ultrasounds work better, it doesnt depend on the surface, in case of the ir .....try to build a sonar a simple transmitter & receiver, set them on an anglr so that at some distance the sound reflects and u will know that u r close to the obstacles.....