Implementing the receiveReadings method