Modified for obtaining correct transformations for the sensor readings