void loop() {
{
lcd.setCursor(0,0);
lcd.setCursor(0,1);
}
{
if int value = digitalRead(A5) = HIGH
lcd.print(" OBJECT FOUND ")
digitalWrite(LED, HIGH)
}
{
if int value digitalWrite(A5) = LOW
lcd.print(" OBJECT NOT FOUND ")
digitalWrite LED, LOW)
}
}
void loop() {
{
lcd.setCursor(0, 0);
lcd.setCursor(0, 1);
}
{ int value = digitalRead(A5);
if (value == HIGH)
lcd.print(" OBJECT FOUND ")
digitalWrite(13, HIGH)
}
{
int value = digitalRead(A5);
if (value == LOW)
lcd.print(" NO OBJECT FOUND ")
digitalWrite(13, LOW)
}
}
You are obviously unfamiliar with C/C++. But all of the issues we have pointed out - missing semicolons, malformed #define statements, faulty if/else statements - would be trivial to fix even for a newbie, if you read through your code carefully and study any of the countless online tutorials and beginner's guides to the C language.
People here are always willing to help, but it's better if you put a lot of effort into it yourself first - simply that's the best way to learn and make sure it "sticks" in your brain.