Add SENSOR_TYPE. Also keep track of totalReadings so we know where the gaps are.