How can I read sensor value using UART Command

This Is a normal GPIO Comm. Code

<!doctype html>

BOLT

var r;
function analogRead(pin,element_id)
{
var xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function()
{
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
{
var obj = JSON.parse(xmlhttp.responseText);
if(obj.success==“1”)
{
document.getElementById(element_id).innerHTML = "Pin Val = "+obj.value;
r=obj.value;

}
else
    {
	document.getElementById(element_id).innerHTML = "Error = "+xmlhttp.responseText;
    }
 } 

}

xmlhttp.open(“GET”,"/analogRead?pin="+pin,true);
xmlhttp.send();

}

But How TO Read A0 Pin Using UART Command

Dear Dhiraj,
The UART communication is used only for communicating between two different modules or microcontrollers.
Just try and use the GPIO Communication which is specifically made for communications between microcontroller and a sensor.