It's not to avoid collision. I need to detect plastic bottles and glass bottles in a close range field, about 10'x10' and be able to differentiate between the two. Someone had suggested an optical sensor, but I haven't seen any that will meet the requirement I'm looking for.