Please help.

Please help what is the mistake. I planned to print
The ultrasonic sensor data in lcd. It shows lcd not declared. Please help. I have also downloaded new ping library. Please help soon

NewPingExample.ino (1.12 KB)

I planned to print
The ultrasonic sensor data in lcd.

What LCD? The program knows nothing about an LCD, except when you try to use the undefined instance.

Look at the examples with the LiquidCrystal library

Hi,
Welcome to the forum.

Please read the first post in any forum entitled how to use this forum.
http://forum.arduino.cc/index.php/topic,148850.0.html . Then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.

Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Thanks.. Tom.. :slight_smile: