Added code for sensors to pass data to server