Fix environmental sensor parsing