Updated server code to include sensor data