Updated the sensor reading