fixing raincounter and temperature decoding