با سلام
این خط رو خطا میزنه

NewPing sonar(TRIGGER_PIN, ECHO_PIN, MAX_DISTANCE); // NewPing setup of pins and maximum distance
مشکل از کجاست ؟