I made a brief tutorial about simplest and cheapest IR bumper possible. I am playing with such sensors now, and they work fine.
Although code example is not the best, I believe main idea is clear. Feedback is always welcome.
This file is really PDF, but named JPG picture, as filter doesn't allow pdf to be uploaded. Rename it to pdf before viewing.