added code to receive the readings