Replace from :
$("#btn_SingleSensorID").click(function () {
to
$("body").on("click", "#btn_SingleSensorID", function ()
it's working good but I don't like the flickering of refresh page and supposed to be smooth.
Should I insert event.preventDefault(); in what line before or after $.post or after success/refresh sensor history?