I've only just read this post thought I'd share a distance sensor I was planing on using its an omron ee-spy302 it is a phototransistor senses up to 4mm and has a very wide input voltage range (5v to...