Open AndroidCrypto opened 3 months ago
Thank you for reporting this issue. It seems that the overflow might be caused by the extremely large value used for setA (2*10^31), which is likely exceeding the limits of the variable type. To resolve this, we suggest adjusting the variable types or using alternative mathematical operations that handle large numbers more efficiently.
If you're able to make these changes and test them, it would be fantastic if you could contribute a merge request with the modifications. This would be a great enhancement to the library, and we appreciate your help in improving it!
Describe the bug I'm trying to read the CH4 gas concentration with a MQ-3 sensor using these values for 'setA' and 'setB':
Unfortunately, the library gives an 'ovf' as output. All other gas readings are working.
Additional context I tested the library on with Arduino Uno R4 Wi-Fi microcontroller and 5V for VCC. The sensor is connected to A0 on the Arduino.