code for nodeMCU-esp12E

would some one please help me find the error for my code?

#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>

//#include "key.h"
#ifdef DEBUG_ESP_PORT
#define DEBUG_MSG(...) DEBUG_ESP_PORT.printf(VA_ARGS)
#else
#define DEBUG_MSG(...)
#endif

// define
#define pot A0

// variable that will change
const char* wifiCreds[] = { "your wifi ssid", "your wifi password" };
int potValue = 0;
String iftttMakerUrl = "https://maker.ifttt.com/trigger/esp_message/with/key/your-token";

void sendSMS(String message){
DEBUG_MSG("Making post request to iftt for sending sms..\n");

HTTPClient http;

http.begin(iftttMakerUrl, "A9 81 E1 35 B3 7F 81 B9 87 9D 11 DD 48 55 43 2C 8F C3 EC 87");
http.addHeader("content-type"," application/json");
int result = http.POST("{"value1":"" + message + ""}");

DEBUG_MSG(String("Status code: "+ result).c_str());
if(result> 0 ){
DEBUG_MSG("body:\r\n");
DEBUG_MSG((http.getString()+"\r\n").c_str());
}else{
DEBUG_MSG("FAILED error:" );DEBUG_MSG((http.errorToString(result)+"\n");
DEBUG_MSG("body: \r\n");
DEBUG_MSG((http.getString() +"\r\n").c_str());
}
http.end();// end sendSMS()
}

void checkPotVal(){
potValue = analogRead(pot);
int potMap = map(0,1023,0,255);
if(potMap >=150){
DEBUG_MSG("VALUE is greate than 150");
sendSMS("hey value is greater than 150( for real by sendSMS");
}
}

void setup(){
Serial.begin(115200);
DEBUG_MSG("\r\n\r\n\r\nConnecting to Wifi\r\b");
WiFi.begin(wifiCreds[0], wifiCreds[1]);
while(WiFi.status() != WL_CONNECTED){
delay(500);
DEBUG_MSG("...");delay(50);
}
DEBUG_MSG("\r\nWIFI connected\r\n");
DEBUG_MSG("Access point: "+WiFi.SSID()+"\r\n").c_str());
DEBUG_MSG("ip Address: "); DEBUG_MSG(WiFi.localIP().toString().c_str());DEBUG_MSG("\r\n");

DEBUG_MSG("\r\nReady for interWEb Action!\r\n ");

}//end setup() herr

void loop(){
}

Instead of posting a screenshot that doesn't show most of the error output, click "copy error message" and then paste the output in here.

This output tells you which line the error is on!

Also, please read how to use this forum post:
http://forum.arduino.cc/index.php/topic,148850.0.html

Arduino: 1.8.0 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"

Warning: Board arduino:attiny45_85:attiny45arduinoisp doesn't define a 'build.board' preference. Auto-set to: ATTINY45_85_ATTINY45ARDUINOISP
Warning: Board arduino:attiny45_85:attiny85usbtinyisp doesn't define a 'build.board' preference. Auto-set to: ATTINY45_85_ATTINY85USBTINYISP
Warning: Board arduino:attiny45_85:attiny85avrisp doesn't define a 'build.board' preference. Auto-set to: ATTINY45_85_ATTINY85AVRISP
Warning: Board arduino:attiny45_85:attiny45avrisp doesn't define a 'build.board' preference. Auto-set to: ATTINY45_85_ATTINY45AVRISP
Warning: Board arduino:attiny45_85:attiny85arduinoisp doesn't define a 'build.board' preference. Auto-set to: ATTINY45_85_ATTINY85ARDUINOISP
Warning: Board arduino:attiny45_85:attiny45usbtinyisp doesn't define a 'build.board' preference. Auto-set to: ATTINY45_85_ATTINY45USBTINYISP
/Users/DatNguyen/Documents/Arduino/Project/banhwich device/send_SMS/send_SMS.ino: In function 'void sendSMS(String)':
send_SMS:65: error: a function-definition is not allowed here before '{' token
void loop(){
^
send_SMS:66: error: expected '}' at end of input
}
^
exit status 1
a function-definition is not allowed here before '{' token
Sketch uses 230332 bytes (22%) of program storage space. Maximum is 1044464 bytes.
Global variables use 31985 bytes (39%) of dynamic memory, leaving 49935 bytes for local variables. Maximum is 81920 bytes.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

You're missing a closing } for a function. I haven't counted brackets, but I think there may be other issues with your curly braces.

Use ctrl+T to fix the indentation in your code - this should make it obvious where the problem is.