Question about PING))) tutorial

I plugged in the PING sensor exactly as shown in the schematic in the tutorial, however, the sensor does not seem to be working correctly. Here were the two problems that occurred:

  1. the sensor is not giving accurate readings. If the sensor is stationary, it gives a reading of 0. Also, when I could get it to give a reading, it said that the object (a flat piece of cardboard) was 12 inches away when it was only 4 inches away.

  2. when my hand gets close to the arduino board the reading become huge (like 42 inches) and it gives a large amount of reading as well.

Any suggestions as to why this is happening.

Thank you!

when my hand gets close to the arduino board the reading become huge (like 42 inches) and it gives a large amount of reading as well.

By “it gives a large amount of reading as well”, do you mean “the frequency of readings increases”?
If so, this a Good Sign - the shorter time-of-flight allows more readings in a given time.
Can you post your code? (Use the Code (#) button in the editor).

just got it to work! Thank you though!