IR sensor as a cheap lidar

has anyone tried to use a sharp IR sensor as a cheap form of lidar?
i was thinking that if this sensor is mounted on a servo a FOR loop could advance the servo one degree at a time and take a reading from the IR sensor populating an array with the readings.

does this sound like i would work or are there pitfalls that i'm not seeing?

Yes it would work but I would use a ten degree step as the sensors have a very wide beam width.

https://github.com/fmbfla/Arduino/tree/master/radar
Modified from a IR device