added a server to code to collect sensor data