Make readSensor(), temperature, and humidity protected instead of private