Finished initial version sensorsubmit.php