How do you scan lockers of equipment that are right next to each other for inventory and not pick up all of the items in the vicinity?

When you do an inventory scan, all of your items that are supposed to be in that location will show up green on your screen and it will complete the scan. All of the other items that you pick up in that inventory scan will be yellow. You will know that you have what you are looking for if the scan completes and it is green.