 #define RF95_FREQ 868.0
 
 #define PIN_SENSOR_LIGHT A0
-#define PIN_SENSOR_SOLAR_VOLTS A1
 #define PIN_SENSOR_SOIL A2
 
 


uint16_t readSolarCurrent() {
  // 1 ohm inline resistor
  return ads.readADC_Differential_0_1();
}

uint16_t readSolarVolts() {
  // Voltage divider to reduce the maximum to 2V.
  // 8V -> 2V
  // Solar Panel --- 300K --- | --- 100K --- GND
  return ads.readADC_SingleEnded(2);
}

uint16_t readLight(uint16_t vcc) {

  
  tx_payload.setChargeMa(readSolarCurrent());
  tx_payload.setChargeMv(readSolarVolts());

Serial.print("getChargeMv: "); Serial.println(tx_payload.getChargeMv()); 
  
  tx_payload.setLight(readLight(vcc));
  tx_payload.setSoil(readSoil(vcc));
  
