it is intentional. I was trying to have a threshold range for when to send a data packet. The ADS comparator is used to compare a measurable quantity with a reference or standard such as two voltages or currents. the range i observed in the original comparator sketch (the geophone example sketch above) was between 0 and -1. It bounced back between the two and when the geophone is vibrated it reads either numbers above 0 or below -1. The greater the difference, shows the amount of voltage created by the geophone by means of vibration. I thought i was setting the threshold to be either 0 or -1 and if it was NOT one of thos numbers, it would trigger the command to send a data packet in the if statement in the
getReading() function
int getReading()
{
// read the sensor and store it in the variable sensorReading:
sensorReading = ads.getLastConversionResults();
Serial.print("GEOPHONE: "); Serial.println(sensorReading);
// if the sensor reading is greater than the threshold:
if (sensorReading = !threshold) {
heltec_send();
}
}