Please help in this fire alarm problem Its urgent

{
sensor_value=analogRead(A0);
b=setMaxValue(700);
setKey(’{{ApiKey}}’,’{{Name}}’);
setChartLibrary(‘google-chart’);
setChartTitle(‘SMOKE DETECTION SENSOR’);
setAxisName(‘time’,‘smoke’);
setCrosshair(true);
setChartType(‘lineGraph’);
plotChart(“time_stamp”,“fire_alarm”);
if(sensor_value>=b)
{
digitalWrite(4,“HIGH”);
}
else
{
digitalWrite(4,“LOW”);
}
}
function newAnalogRead(A0) {
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
var obj = JSON.parse(xmlhttp.responseText);
if(obj.success==“1”){
callback_func(obj.value);
}
}
};
xmlhttp.open(“GET”,base_url+api_key+"/analogRead?pin="+pin+"&deviceName="+d_name,true);
xmlhttp.send();
}

@umangmathpal,
While configuring your project, in the hardware section have you mapped any pin to a variable named “fire_alarm”? Please refer to the image given below. Do let me know if you need any further assistance.