Added all the sensor reading code