Distance sensor


I'd like build a small car which stops when he reaches the wall. Does anyone have some experiences with sensor who can do that?


Millions of threads on here about ultrasonic and infra red.

Have a look at the NewPing library for ultrasonic.... dead simple. I use this sensor.