 
 #define S1_Available            40009
 #define S1_ScanTime             40011
-#define S1_Lux                  40013
-#define S1_CT                   40015
-#define S1_IR                   40017
-#define S1_AGAINX               40019
-#define S1_ATIME_MS             40021
-#define S1_ATIME                40023
-#define S1_R_RAW                40025
-#define S1_G_RAW                40027
-#define S1_B_RAW                40029 
-#define S1_C_RAW                40031
-#define S1_R_COMP               40033
-#define S1_G_COMP               40035
-#define S1_B_COMP               40037
-#define S1_C_COMP               40039
-
-#define S2_Available            40041
-#define S2_ScanTime             40043
-#define S2_SeaLevelPressureHPA  40045  
-#define S2_Temperature          40047
-#define S2_Pressure             40049
-#define S2_Altitude             40051
-#define S2_Humidity             40053
+#define S1_Calibration          40013
+#define S1_Lux                  40015
+#define S1_CT                   40017
+#define S1_IR                   40019
+#define S1_AGAINX               40021
+#define S1_ATIME_MS             40023
+#define S1_ATIME                40025
+#define S1_R_RAW                40027
+#define S1_G_RAW                40029
+#define S1_B_RAW                40031 
+#define S1_C_RAW                40033
+#define S1_R_COMP               40035
+#define S1_G_COMP               40037
+#define S1_B_COMP               40039
+#define S1_C_COMP               40041
+
+#define S2_Available            40043
+#define S2_ScanTime             40045
+#define S2_SeaLevelPressureHPA  40047  
+#define S2_Temperature          40049
+#define S2_Pressure             40051
+#define S2_Altitude             40053
+#define S2_Humidity             40055
 
 bool s1, s2; // flags to indicate which sensors are available
 

  // update S1 registers
  while (s1 && (curMillis - S1StartTime > 5000)) {
    tcs.getData();
    m.setFloat(S1_Lux, tcs.lux);
    m.setFloat(S1_CT, tcs.ct);
    m.setFloat(S1_IR, tcs.ir);
    m.setFloat(S1_AGAINX, tcs.againx);

#define BME_MOSI 11
#define BME_CS 10

#define SEALEVELPRESSURE_HPA (1027.8)

Adafruit_BME280 bme; // I2C

