Proximity sensors detect objects without physical contact. Most proximity sensors emit an electromagnetic field or beam and look for changes in the field. The object being sensed is called a target.
I recently had to build an infrared close proximity sensor that could tell if something was dropped in a parcel delivery drop box. After some searching, I ended up using a microcontroller and a piece ...