changed how I'm doing things, using zeromq sockets and threads to communicate and keeping track of sensor data in a Map