Fix ajax call to savesensor.php