I’m helping high school students set up a network of sensors to run irrigation in an experimental citrus grove. We started by using the analog temperature sensor. It works fine, however, after a few minutes, it always crashes with an error in the grovepi library. It’s a long error message that ends with:
math domain error line 102 in temp
All that I added to the sample code were a couple of fudge factors in the “print” line to calibrate to fahrenheit.
I really want to use grovepi for this project but I cannot use it if it cannot run reliably for weeks without crashing. I cannot get 5 minutes without a crash.