ERROR HELP?

ERROR CANT SOLVE IT HELP

////////Define Pins
int sensepin = A0;
int ledPin = 13;
int lastVal = 0;
int Counter1 = 0; //Relay closed seconds counter
void setup(){
  pinMode (ledPin,OUTPUT);
  Serial.begin(9600);
}

void loop(){ 
  do{
  int val = analogRead(sensepin);
   if (val > 10) {   // if the current reading is bigger than the last Reading...
    Serial.println(val); // print in the console the value of current reading
     delay(8000); // delay for of time
   digitalWrite(sensepin,LOW); 
Counter1++; //Increment seconds closed counter
int val = analogRead(sensepin);
 if (val > 10) {   // if the current reading is bigger than the last Reading...
    Serial.println(val); // print in the console the value of current reading
     delay(8000); // delay for of time
 digitalWrite(sensepin,LOW); 
  Counter1++; //Increment seconds closed counter
 int val = analogRead(sensepin);
 if (val > 10) {   // if the current reading is bigger than the last Reading...
    Serial.println(val); // print in the console the value of current reading
     delay(8000); // delay for of time
 digitalWrite(sensepin,LOW); 
 Counter1++; //Increment seconds closed counter
 int val = analogRead(sensepin);
 if (val > 10) {   // if the current reading is bigger than the last Reading...
    Serial.println(val); // print in the console the value of current reading
     delay(8000); // delay for of time
 digitalWrite(sensepin,LOW); 
 Counter1++; //Increment seconds closed counter
 int val = analogRead(sensepin);
 if (val > 10) {   // if the current reading is bigger than the last Reading...
    Serial.println(val); // print in the console the value of current reading
        delay(8000); // delay for of time
       if (val > 10) {   // if the current reading is bigger than the last Reading...
    Serial.println(val); // print in the console the value of current reading

 void blinkTwice(); }      // execute blinkTwice(){
    delay(15000);        // pause 15 seconds before new check              <----------------------------- NEW LINE
                        
  void blinkTwice () // this will run only when the current Reading is bigger than the last Reading

    digitalWrite(ledpin,HIGH);
   delay(50);
   digitalWrite(ledpin,LOW);
   delay(50);
   digitalWrite(ledpin,HIGH);
   delay(50);
   digitalWrite(ledpin,LOW);
   delay(50);
}

Check your braces: for each { you have to have a }

Format your code with Crtl + T

STILL STUCK

If you have all your braces paired up show your changed code to us.

Show the error message.

Read this before posting a programming question

ERROR HELP? ... ERROR CANT SOLVE IT HELP ... STILL STUCK

Why are you shouting at us? Do you respond better to people when they shout at you?

I'm not sure what this code does or what you expect it to do but, after much clean up on my end, you need to add quite a few things. You need to add the complimenting closing brackets and either get rid of the "do" condition or add the while condition somewhere.

Added: This is not how you call a function from your main code, void blinkTwice(); , this is, blinkTwice();. Also your function is missing an open bracket. My advise is to learn proper code format, meaning add spaces and check all brackets.

love7007: STILL STUCK

Like your shift key, apparently.

Read this.

https://en.wikipedia.org/wiki/Indent_style

I don't wish to read your code. It hurts eyes.