Updated functions readXData, readYData, readZData and readTemp adding return instructions