Download this file
#ifndef SENSOR_H
#define SENSOR_H

#include "indicator.h"
#include "Scheduler.h"
#include "SparkFun_SCD30_Arduino_Library.h" //Click here to get the library: http://librarymanager/All#SparkFun_SCD30

#define NB_VALUES 10

class Sensor: public Task {
  public:
    Sensor(Indicator * ind):
      calibrating(false),
      runTime(0),
      values { 0 },
      value_idx(0)
      { indicator = ind; }
    void begin();
    bool canRun(uint32_t now);
    void run(uint32_t now);
    bool calibrating;
  private:
    uint32_t runTime;
    uint16_t values[NB_VALUES];
    uint8_t value_idx;
    SCD30 scd30;
    Indicator * indicator;
};
#endif