sensor communicates with server