Function not being declared in this scope

I am some what new to Arduino and sort of know what I am doing. I am working on a school project that uses 4 ultrasonic sensors that will make LEDs brighter or dimmer depending on weather an object is getting closer or farther away. The final version would use haptic feedback instead of LEDs and then be put into a hat or headband, allowing someone who is blind to navigate in an environment without a cane. I am using an Arduino Nano.

My problem is that I get this message whenever I try to verify my code:

C:\Users\Owen\Documents\Arduino\Project_Murdoc\Project_Murdoc.ino\Project_Murdoc.ino.ino: In function ‘void loop()’:

Project_Murdoc.ino:159: error: ‘Left__read’ was not declared in this scope

Left__read();

^

exit status 1
‘Left__read’ was not declared in this scope

Here is my code. I would really appreciate any help. Thank you

//Data pins for sensors
const int Left_trig_pin = 2; //initalize all vlaues for pins
const int Left_echo_pin =Left_trig_pin + 1;
const int Right_trig_pin = 4;
const int Right_echo_pin = 5;
const int Front_trig_pin = 6;
const int Front_echo_pin = 7;
const int Rear_trig_pin = 8;
const int Rear_echo_pin = 9;

//user feedback outputs
const int Left_output = 10;
const int Right_output = 11;
const int Front_output = 12;
const int Rear_output = 13;

//distance constant
const int MAX_distance = 100;

/* This function gets a value from the left side sensor
and writes it to the left user feed back module.
*/

void Left_read() {
digitalWrite(Left_trig_pin, HIGH); // Sets the Left trigPin on high for 10 micro seconds
delayMicroseconds(10);
digitalWrite(Left_trig_pin, LOW);

int duration = pulseIn(Right_echo_pin, HIGH); // Reads the Left_echo_pin, returns wave travel time in microseconds

int distance= duration*0.034/2; //does math to find distance in cm

//DEBUGING PURPOSES break glass, sorry no, break comment.
/*
Serial.print(“Left eye reads “);
Serial.println(distance);
Serial.println(” in CM”);
delay(500);
*/
//END OF DEBUG THING

if (distance < 0) //If statements that use the distance from eye
Serial.print(“ERROR unable to read left eye correctly”);
if (distance >=0 && distance <= MAX_distance)
analogWrite(12, map(distance,0,MAX_distance,0,255));
if (distance > MAX_distance)
Serial.println(“Object too far away to send the user feed back”);
}

/* This function gets a value from the right sensor
and writes it to the right user feed back module.
*/

void Right_read() {
digitalWrite(Right_trig_pin, HIGH); // Sets the Right trigPin on high for 10 micro seconds
delayMicroseconds(10);
digitalWrite(Right_trig_pin, LOW);

int duration = pulseIn(Right_echo_pin, HIGH); // Reads the Right_echo_pin, returns wave travel time in microseconds

int distance= duration*0.034/2; //does math to find distance in cm

//DEBUGING PURPOSES if emergency break glass, sorry no, break comment.
/*
Serial.print(“Right eye reads “);
Serial.println(distance);
Serial.println(” in CM”);
delay(500);
*/
//END OF DEBUG THING

if (distance < 0) //If statements that use the distance from eye
Serial.print(“ERROR unable to read Right eye correctly”);
if (distance >=0 && distance <= MAX_distance)
analogWrite(Right_output, map(distance,0,MAX_distance,0,255));
if (distance > MAX_distance)
Serial.println(“Object too far away to send the user feed back”);
}

/* This function gets a value from the front sensor
and writes it to the front user feed back module.
*/

void Front_read() {
digitalWrite(Front_trig_pin, HIGH); // Sets the Right trigPin on high for 10 micro seconds
delayMicroseconds(10);
digitalWrite(Front_trig_pin, LOW);

int duration = pulseIn(Front_echo_pin, HIGH); // Reads the Right_echo_pin, returns wave travel time in microseconds

int distance= duration*0.034/2; //does math to find distance in cm

//DEBUGING PURPOSES if emergency break glass, sorry no, break comment.
/*
Serial.print(“Front eye reads “);
Serial.println(distance);
Serial.println(” in CM”);
delay(500);
*/
//END OF DEBUG THING

if (distance < 0) //If statements that use the distance from eye
Serial.print(“ERROR unable to read Front eye correctly”);
if (distance >=0 && distance <= MAX_distance)
analogWrite(Front_output, map(distance,0,MAX_distance,0,255));
if (distance > MAX_distance)
Serial.println(“Object too far away to send the user feed back”);
}

/* This function gets a value from the rear sensor
and writes it to the rear user feed back module.
*/

void Rear_read() {
digitalWrite(Rear_trig_pin, HIGH); // Sets the Right trigPin on high for 10 micro seconds
delayMicroseconds(10);
digitalWrite(Rear_trig_pin, LOW);

int duration = pulseIn(Rear_echo_pin, HIGH); // Reads the Right_echo_pin, returns wave travel time in microseconds

int distance= duration*0.034/2; //does math to find distance in cm

//DEBUGING PURPOSES if emergency break glass, sorry no, break comment.
/*
Serial.print(“Front eye reads “);
Serial.println(distance);
Serial.println(” in CM”);
delay(500);
*/
//END OF DEBUG THING

if (distance < 0) //If statements that use the distance from eye
Serial.print(“ERROR unable to read Front eye correctly”);
if (distance >=0 && distance <= MAX_distance)
analogWrite(Front_output, map(distance,0,MAX_distance,0,255));
if (distance > MAX_distance)
Serial.println(“Object too far away to send the user feed back”);
}

void setup() {
pinMode(Left_trig_pin, OUTPUT); //define pins for sensors
pinMode(Left_echo_pin, INPUT);
pinMode(Right_trig_pin, OUTPUT);
pinMode(Right_echo_pin, INPUT);
pinMode(Front_trig_pin, OUTPUT);
pinMode(Front_echo_pin, INPUT);
pinMode(Rear_trig_pin, OUTPUT);
pinMode(Rear_echo_pin, INPUT);

pinMode(Left_output, OUTPUT); //define all user feed back outputs
pinMode(Right_output, OUTPUT);
Serial.begin(9600); //begin serial monitor on 9600 band
}

void loop() { //Run this code until the end of time
Left__read();
Right_read();

}

Project_Murdoc code.txt (5.92 KB)

Please use code tags.

Blairis123:
My problem is that I get this message whenever I try to verify my code:

Left_read();

...versus...

Left__read();

Thank you so much.

You are welcome.