This is the simplest sensor you will find for obstacle and collision sensing. It is basically a switch with a long handle (can be extend with external lever for better performance) which closes the switch everytime it collides with an obstacle. It is of small size and comes in a SPDT package. It is simple in working and easy to use. Can be easily interfaced to microcontrollers and external circuits.