  ******************************************************************************/
 
 int photoPin = A5;           // photoresistor pin
-int powerPin = A0;
-int readoutTimeIntervalMins = 1;   // perform a readout every given minutes
+int powerPin = A0;           // the other leg of the photoresistor
+int readoutTimeIntervalMins = 2;    // perform a readout every given minutes
 
 const int PHOTON_OFFLINE = 0;
 const int PHOTON_CONNECTING = 1;

  int pushButtonState = HIGH;
  if(pushButtonState == LOW) {
    // button was pressed, connect for an immediate readout
    buttonPressed = true;
    photonState = PHOTON_CONNECTING;
    Particle.connect();
    return;
  }
  else {

      // also publish daily max and min values when button pressed
      (button ? ", lmin: " + slmin + ", lmax: " + slmax : "") +
      "}";
  // publish data: ttl = 60 for now, in the future it may be readoutTimeIntervalMins*60
  if(!Particle.publish("luxdata", payload, PRIVATE, WITH_ACK)) {
    return -1;
  }
