diff --git a/test.py b/test.py index f3af3b5..86f1a9e 100644 --- a/test.py +++ b/test.py @@ -19,4 +19,7 @@ def get_moisture(): voltsChArray = [adc.readADCSingleEnded(0, gain, sps) / 1000, adc.readADCSingleEnded(1, gain, sps) / 1000, adc.readADCSingleEnded(2, gain, sps) / 1000, adc.readADCSingleEnded(3, gain, sps) / 1000] - return sum(voltsChArray) / float(len(voltsChArray)) \ No newline at end of file + return sum(voltsChArray) / float(len(voltsChArray)) + +while True: + print(get_moisture()) \ No newline at end of file