updated code for recieving sensor data