Completed functions readXdata, readYData, readZData and readTemp by adding the return statements