Hey,
I've been looking around for solutions for my sensors I just purchased. It will work fine, then all of a sudden it will keep returning 0. I have 4 from Sainsmart and they all seem to operate the same.
Vasimv has the only post so far that gave me some light in that, if I snap my fingers beside the sensor, 100% of the time it will start reporting distance again. At least for some random amount of time, till it starts to 0 out again. (usually a few seconds, some times even a few minutes)
Vasimv, would you be able to elaborate on your solution. I do not quite understand how you are discharging C9.
Are you sending it to a digital input and giving it an INPUT mode? or an OUTPUT mode? I'm a little confused you mentioned both.