Moved get_sensor back into hub, it was causing issues.
Now ready to send data to server