Implement simple handshake between sensor and server.