All this code:-
//Temperature setup
double Thermister(int RawADC) { //Function to perform the fancy math of the Steinhart-Hart equation
double Temp;
Temp = log(((10240000/RawADC) - 10000));
Temp = 1 / (1.133E-3 + ( 2.334E-4 + ( 9.056E-8 * Temp * Temp ))* Temp );
Temp = Temp - 273.15; // Convert Kelvin to Celsius
Temp = (Temp * 9.0)/ 5.0 + 32.0; // Celsius to Fahrenheit - comment out this line if you need Celsius
return Temp;
}
//Current Setup
{
emon1.current(1, 1.82); // Current: input pin, calibration.
}
is outside a function. The last bit is calling a function, you can't do that outside a function.
You need to know what this is doing any why the function head is missing.