Urgent Help Needed!

I am gettig error message that ‘check was not declared in the scope’. I have done privious projhect with the same code but it do not gets this error but this time it is getting an error. Today coding is

#include <AFMotor.h>

//Objects
AF_DCMotor motorRight(1, MOTOR12_64KHZ); // create motor #1, 64KHz pwm

//Constants and variable
char dataIn = 'S';
char determinant;
char det;
int vel = 255; //Bluetooth Stuff
int god = 255;
int aod = 255;
int bod = 255;
int cod = 255;
int dod = 255;

void setup() {
  Serial.begin(9600); // set up Serial library at 9600 bps
 
 //Initalization messages
  Serial.println("SAARTHI");
  Serial.println("Mr.PhotoBox");
  Serial.println("Reday for use Lets's Click it !!");
 
  pinMode(8, OUTPUT);  //1 Led
  pinMode(9, OUTPUT);  //2 Led
   pinMode(10, OUTPUT);  //3 Led
   pinMode(11, OUTPUT);  //4 Led
   pinMode(12, OUTPUT);  //5 Led
  
  
  
  //turn off motors
  motorRight.setSpeed(0);
  motorRight.run(RELEASE);
 
}

void loop() {

**>  det = check(); //call check() subrotine to get the serial code<**

And my privious codding was

#include <AFMotor.h>


//Objects
AF_DCMotor motorRight(1, MOTOR12_64KHZ); // create motor #1, 64KHz pwm
//Constants and variable
char dataIn = 'S';
char determinant;
char det;
int vel = 255; //Bluetooth Stuff


void setup() {
  Serial.begin(9600); // set up Serial library at 9600 bps
  pinMode(9, OUTPUT);  //FrontLed
  pinMode(8, OUTPUT);  //BackLed
   pinMode(10, OUTPUT);  //Horn
  
 
  //Initalization messages
  Serial.println("Mr.robot");
  Serial.println("Reday for working Run It");
  
  //turn off motors
  motorRight.setSpeed(0);
  motorRight.run(RELEASE);
}

void loop() {
  det = check(); //call check() subrotine to get the serial code

Please help me out please it’s urgent.

I am getting this issue

2 posts were merged into an existing topic: Urgent Help Needed Please!