// Initialization function
  void init() {
    // pump attached to A2 (aka D16)
    pump = new mraa::Gpio(16);
    pump->dir(mraa::DIR_OUT);
    pump->write(0);

    // moisture sensor attached to A1
    moisture = new upm::GroveMoisture(1);
  };
    // Initialization function
    void init() {
        // buzzer connected to digital 15 aka A1
        buzzer = new mraa::Gpio(15);
        buzzer->dir(mraa::DIR_OUT);
        stop_buzzing();

        // air sensor connected to analog A2
        sensor = new upm::MQ2(2);
    };
  // Initialization function
  void init() {
    // buzzer connected to A1 (aka digital out 15)
    mraa_init();

    buzzer = new mraa::Gpio(15);
    buzzer->dir(mraa::DIR_OUT);
    stop_alarm();

    // moisture sensor on analog (A2)
    moisture = new upm::GroveMoisture(2);
  }
  // Initialization function
  void init() {
    mraa_init();

    // temperature sensor connected to A1 (analog in)
    temps = new mraa::Aio(1);

    // buzzer connected to A2 (aka digital out 16)
    buzzer = new mraa::Gpio(16);
    buzzer->dir(mraa::DIR_OUT);
    stopAlarm();

    // flame sensor on A3
    flame = new mraa::Aio(3);
  }