     pinMode(ALGEN, OUTPUT);
     pinMode(LED, OUTPUT);
 
+    pinMode(SOUND, INPUT);
+
     pinMode(POWR1, INPUT);
     pinMode(POWR2, INPUT);
     pinMode(POWR3, INPUT);

float Si1132InfraRd = 0; //Lux

bool ACCELOK = false;
int16_t ax, ay, az;
int16_t gx, gy, gz;

//********************************************************************************
//********************************************************************************

        }
    }

    //SOUNDV = signalMax - signalMin;  // max - min = peak-peak amplitude
    SOUNDV = mapFloat((signalMax - signalMin), 0, 4095, 0, 3.3);

    return 1;
}

int readPower() {
    // Power
    EnergyMonitor emon1;
    EnergyMonitor emon2;
    EnergyMonitor emon3;

    // If voltage is fixed, e.g. 240V,
    // and resistance is known/assumed,
    // then the only variation is amperage.
