I am building a new little guy and I am getting consistently bad readings now that I have added more code to the program. Let me explain....
I double checked that the hardware is ok.
I tested the different elements seperately: Speaker, motors, sensor, etc. The sensor was tested using the little piece of code I keep around, inspired from the YDMII.
symbol trig = 4